variable choice to make it visible to particular group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 01:52 AM
I have written script for variable choice to make it visible to particular group
both scripts i have written in scoped application
when i have used same script in global it worked
can you please help me why this is not worked in scoped application
this is my script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 02:01 AM
Hi,
Can you please specify what NMATeam is and how you are dot walking it. You should use g_form to get the value of NMATeam. Also in Script Include instead of GlideRecoding the User Group membership table please use gs.getUser('user id').isMemberOf('group_name')
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 02:13 AM
Hi ,
Thanks for Response
NMA is the sys property name which is having the Group sysid, such that instead of using the group name i have used the sys property

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 03:26 AM
@harinya This line
ga.addParam('sysparm_propname',' ''NMATeam.group.sysid');
You will not be able to work. If NMA team is a reference field, use g_form.getReference('NMATeam'); to get the reference and once you have the reference, you can apply a dot walk on the group.sys_id.
Hope this helps.