Multiple users selected in a filed and requested for manager should be the same

sai_rahul1
Tera Contributor

If multiple users are selected in a field which is list collector, the users manager and requested for manager should be same else it should throw an error. How do we achieve this? 

2 REPLIES 2

Rajesh_Bhise
Tera Guru

Hello @sai_rahul1,

 

You can add reference qualifier on the field (type - list collector).

type - Advanced reference qualifier.

1. use script include funtion to get requested for user.

2. Check his manager record.

3. For the list collector field, apply this record as condition.

     user.manager == requested for manager.

4. return the satisfied records only.

 

Hope this helps your query.

 

Kindly mark my answer has helpful‌‌ and solution proposed‌‌ if this helps you.

 

Thank you,
Rajesh

sai_rahul1
Tera Contributor

Hi rajesh thanks for the answer, can you please elaborate and show me script include and the process .

thank you