Set assignment group in Field, if Logged in User is a part of 'London Creator' assignment Group.

Star123
Tera Contributor

Hello All,

 

I have a requirement, If a logged In user is a Part of "London Creator" Group. after Submitting a request from

Record Producer. in Native Form there is one Field Creator Group, so it should filled with the assignment group name.

 

Please help me the solution.

thankyou.

8 REPLIES 8

AshishKM
Kilo Patron
Kilo Patron

Hi @Star123 ,

Write this logic in script part of record producer.

if ( gs.getUserID().isMemberOf(“London Creator”){
current.setValue(‘assignments _group’, ‘sys_id of creator group’)

}

 

Try with this code

- Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Star123
Tera Contributor

Hi Ashish,

if logged in user is part of London Creator group, I want to set London Creator as a string in "Creator Group" field which i have created in Native side. I don't want to set in assignment group field.

 

Can you please help me in that?

 

thankyou

You can set the field value using the below code 

current.setValue(‘filedName’, ‘fieldValue’);

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Star123
Tera Contributor

And how i can check if logged in user is only part of London creator group?