- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 08:00 AM
Hello SNC,
I have created a catalog form and it has a list collector variable which is refering to task table and my reference qualifier will filter the items, Everything is fine untill this point.
Now in the RITM created, I want all the selected items from the list collector(which are shown in the variables section) should be populated as individual items in the related list.
Please let me know how this can be achieved.
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2023 10:24 AM
I was able to achieve it myself with the following line in the query of the custom related list,
current.addQuery('sys_id','IN',parent.variables.list_collector_name);
Might be usefull for anyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 08:37 AM - edited 05-25-2023 08:40 AM
Related lists need to reference tables...so you'll need an intermediate table (custom table) for this.
After you get the data with the list collector, insert each item into the custom table individually, then reference that table in the related lists section.
Don't forget a RITM reference column on the custom table to filter the selections to the RITM that selected them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 08:50 AM
Does it really need a custom table.
The values I get are inc and prb records and these were already in task table.
So why can't I create a relationship on task table.
I thought I might need a script include to get the value from a list collector and pass them as comma separated independent items. and can wwrite a client script to populate the answers.
Will that be the rightt approach???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 09:01 AM
Gotcha...but unfortunately, yes.
Related lists can only reference a single table...just to confirm, you specifically want to use a related list, yea?
I mean, you could replicate the functionality of the related list feature for your ITSM module in question (Service Catalog/RITM)...but I would advise against that.
In the end, S-Now operates like a relational db, which in strict db terms, would require a join view for this type of functionality...and the only way to do that on the platform without an intermediate table, is in reports.
If you only want to reference the records that you are collecting, but not display in a related list (tab at the bottom of the task), this can be done without an intermediate table or "advanced" customization.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 09:56 AM
Understood why you advised the above . But please navigate throught the following URL
I am more inclined towards brads approach where we dont need a custom table.
Thanks for the response tho.