Related list (RITMs add to related list)

ShhivaaA
Tera Contributor

I have configured the related list to a custom table for RITMs but in that custom table I have found all RITMs from service catlouge but I need only perticular custom table related RITMs only.

 

Applies to table - custom table name (i have given)

 

Queries from table - Requested Item [sc_req_item] (have given)

 

I need to get RITMs from service catalouge.

1 ACCEPTED SOLUTION

Aditya_hublikar
Kilo Sage

Hello @ShhivaaA ,

 

  Have you created custom field in sc_req_item form which should reference to your custom table .

 

Aditya_hublikar_0-1771398039123.png

 

 

rel.png

 

Aditya_hublikar_2-1771398237289.png

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

 

 

View solution in original post

5 REPLIES 5

Aditya_hublikar
Kilo Sage

Hello @ShhivaaA ,

 

  Have you created custom field in sc_req_item form which should reference to your custom table .

 

Aditya_hublikar_0-1771398039123.png

 

 

rel.png

 

Aditya_hublikar_2-1771398237289.png

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

 

 

Hello @ShhivaaA  ,

 

I hope you are doing well . Does my response helps you ?

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

Ankur Bawiskar
Tera Patron

@ShhivaaA 

update and add this query

// your existing query

current.addEncodedQuery('cat_item.sc_catalogsLIKEe0d08b13c3330100c8b837659bba8fb4');

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Dhanuja3
Tera Contributor

@Aditya_hublikar

For catalog items, is there a way to determine whether they are associated with this specific custom table, such as sc_category or service_catalog?
If yes, you can include that condition in the query_with field as shown below.
If not, you will need to filter them manually by passing each catalog item’s sys_id as shown in the example below.
Dhanuja3_0-1771500625948.png