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 08:46 AM
Hi @raj99918 ,
Please refer to below thread:
Plz mark my solution as Accept, If you find it helpful.
Thanks & Regards,
Sumanth meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 09:32 AM
Hi @Sumanth16 Thanks but still no luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 10:26 AM - edited 07-23-2024 10:28 AM
Hello @raj99918 ,
In the SI function while returning sys_id of groups, remove the string 'sys_IIN' and replce it with -
return groups.join(',');
Also, in the client script try setting the value of reference field like -
var groupSysIds = answer.split(',');
g_form.setValue('assignment_group', groupSysIds.join(','));
Let me know if it works,
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:45 AM
Hi @Vrushali Kolte Thanks for the changes but still its not working it is showing all the group names instead of filter groups from requested user