The CreatorCon Call for Content is officially open! Get started here.

Add Variables name and there values in related list of incident form

Divya Dahate
Tera Expert

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:

sc_item_optionIN('66c127a11bd61cd0b7e8315bcd4bcb5b', '3d2154abdb4d37c438d2c19115961957');
 
and it's showing like this on incident form. 
DivyaDahate_0-1735802842039.png

 

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!

     
1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Divya Dahate 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Sarthak Kashyap
Tera Expert

Hi @Divya Dahate ,

Please add script like below 

current.addQuery('field_backend_name', parent.sys_id);

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak