- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 11:29 PM
Hello All,
I'm trying to add 2 variables name and there values on New custom related list on the incident form.
Can you please suggest something to achieve this.
I created the Relationship as below:
Applies to table: incident
Queries from table: ar_sc_item_option_mtom
And in Query i added:
I'm not sure how can i add only current catalog item's variables here and only show too variable on related list.
If you have any idea in this please let me know
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 11:32 PM
I believe you want to see variables associated with the current incident when incident got submitted from record producer
update as this
Queries from: question_answer
Script:
current.addQuery('sys_id', parent.table_sys_id);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 11:32 PM
I believe you want to see variables associated with the current incident when incident got submitted from record producer
update as this
Queries from: question_answer
Script:
current.addQuery('sys_id', parent.table_sys_id);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 11:48 PM
Hello @Ankur Bawiskar ,
Thank you! for you response,
I added the script but it's showing black values:
As per my understanding it will show variable name and there backend name only, my question here is
Is there any ways to show like for ex: Application and there selected value , group and there selected group name (values which is selected when form is submit)
Can we achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 12:37 AM
it will show the Question(variable) and it's value.
Remember the question_answer variable holds sysId for reference and list field and not the display value
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 11:33 PM
sc_item_option_mtom table holds information only for RITM
question_answer table holds information about variable details for records submitted via record producer
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader