Hello,
My aim is to assign each ‘Trader’ (a Role) to a ‘Distributor’ (it’s also a Role). for this
I have made a SETUP doctype. It has Child Table. The child table has two link fields, both references the ‘UserRole’ table.
So, I want to populate all ‘Trader’ users in one link and all ‘Distributors’ in other link in the child table’s link fields.
How to custom script for this?