Add groups to variable field through automation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2025 03:44 AM
Hi Everyone.
I have a requirement where i need to add groups of one variable to other variable in a catalog item.
We have one variable called AD group, and other variable Company groups. This company groups is a list collector variable it has reference to a company group table. In every record company group table there is one variable called Org groups. When we select any company group record , the data in that org groups field of that particular company group should be appended to AD group variable. How can i achieve this?
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2025 04:04 AM
Hello @Atchutaram ,
You can do this by creating an onChange catalog client script and a GlideAjax call. Please share what you have tried earlier.
Company group table is a custom table, right? And the AD group variable is of which type?
Please mark this response as Correct and Helpful if it assists you.
Thanks,
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2025 05:48 AM
Hi @Ashish Parab , Currently we do have a runscript for automatically adding AD groups to user groups profile. Yes, Company table is custom table and AD group variable is string type variable in custom table record,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2025 09:09 AM - edited 07-09-2025 09:11 AM
Hello,
- You need to use on change client script on your table on the chnage of 'Company groups'.
- Pass this value to glide ajax script include function
- in glide ajax , glide record to the ref table (i.e. Company groups) and get the value of org group for each record and keep adding the value to a string field ( dispaly value not the sys id)
- do this for all the records you passed in script include
- return the final string to client script
- set the value of AD group to that string
Try to write the client script and script include and share the code if you get stuck somewhere.
Thanks!
Uma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 02:29 AM
Hi @umaaggarwal
this is the script include: