Set assignment group in Field, if Logged in User is a part of 'London Creator' assignment Group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 04:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 05:06 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 05:20 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 05:54 AM - edited 03-09-2024 05:54 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 06:02 AM
And how i can check if logged in user is only part of London creator group?