- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 05:08 PM
Hi There,
I created a cat item that has a variable (list collector) that stores one or more business applications.
I would like to create a related list in the "business application" form that shows all request items related to that business application.
I am not sure how to do this as the name of one or more business app are stored in a variable rather than a field and i also have more than one.
how do i do this?
regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 06:10 PM
Hi @El Cuchi,
- Create Relationship [sys_relationship] record. Something like the following
Refer to the doc for details - https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/administer/form-adminis...
Note that you would need to replace the sys_id in the query with your variable's sys_id
- Open a Business App record and select Configure > Related Lists
- Search by the relationship record's name and add it to the list on the right
Outcome:
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 03:29 PM
Hi @El Cuchi,
You can add another line of code, something like:
current.addQuery('item=your_catalog_item_sys_id');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 06:10 PM
Hi @El Cuchi,
- Create Relationship [sys_relationship] record. Something like the following
Refer to the doc for details - https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/administer/form-adminis...
Note that you would need to replace the sys_id in the query with your variable's sys_id
- Open a Business App record and select Configure > Related Lists
- Search by the relationship record's name and add it to the list on the right
Outcome:
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 01:31 AM
Hi James,
I configured the relationships record as you suggested and although it works, not only shows the requests where this business application was selected but it brings all different catalogue items.
I need the list to bring all requests but just for a specific catalogue item. It should show only the first 2 requests.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 03:29 PM
Hi @El Cuchi,
You can add another line of code, something like:
current.addQuery('item=your_catalog_item_sys_id');