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 08:59 AM
try this
if ( gs.getUserID().isMemberOf(“London Creator”){
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 10:48 AM
@Star123 ,
Lets assume your string field name is called as u_creator_group
You need to Include this script in RP Script
if(gs.getUser().isMemberOf("london creator group"){
current.u_creator_group= 'test test’;
}
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 05:59 AM
so we can do that in record producer's script ? is it possible to set native side field value from record producer? and what will happen if Logged in user is part of multiple groups?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 09:18 AM
Hi @Star123 ,
if(gs.getUser().isMemberOf("london creator grou"){
current.assigned_group = 'add sysid of group here'
}
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda