auto populate list collector variable value in service catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2024 11:55 AM
Hi
I want to auto populate one list collector variable value based on the value selected to other variable.
I have written one script include and client script but it is returning null value.
script include
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2024 12:10 PM
Hi
i could see that the function name in client script is incorrect, you should pass sysparm_name as getreportnames in client script also if the field which you are trying to populate is a reference field then you may to return sysids instead of title.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2024 02:39 AM
Hi @SwapnilKumar ,
Now it is returning the arr but on list collector variable value is not populating automatically, I have use g_form.setValue() to auto fill the variable value but it is not auto filling.
Do I need to use any other method for this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2024 01:21 AM
You could achieve this by using Data Lookup Rules for Catalog Items. However, you need to create a backup table to hold relationship between variables.