Trying to get the group names in Assignment group variable which requested for belongs to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 08:32 AM
Hi ,
Get list of groups thats Requested for belongs to in a catalog form variable called Assignment group I have written script include and onChnage catalog client as below but some how it's not setting the values in the refernce variable and also am able to get the sys_ids's of all the groups from script include but its not setting it in the reference variable
Note: This is in scoped application not in Global scope
Script include:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 10:52 AM
Hello @raj99918 ,
Instead of using a client script you can make use of reference qualifier on assignment_group variable as follows -
javascript: new GroupsMembership().getGroups();
Keeping the return statement as is return 'sys_idIN' + groups;
If my answer solves your issue, please mark it as Accepted ✔️and Helpful👍!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 10:58 AM
Hi @Vrushali Kolte ,
Am developing this is on scoped application still the reference qualifier is same or need to modify anything If yes please let me know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 11:07 AM
If its a scoped application just try to add the API name of SI.
e.g. javascript: new API_name_SI().function_name();\
If my answer solves your issue, please mark it as Accepted ✔️and Helpful👍!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 11:11 AM
Hi @Vrushali Kolte javascript:new x_rc_er_li.GroupsMembership().getGroups();
I have written as suggested by you but still no luck in getGroups function Do I need to add (current.variables.requested_for)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 11:14 AM
Hi @raj99918 ,
Please provide the reference qualifier which you added in the field?
Thanks & Regards,
Sumanth Meda