RITM under the related list

Rahul84
Tera Contributor

Hi Team,

I have a below requirement. Please let me know , will this achievable , if yes pls let me know the solution

The catalog item that we are requesting through the related link on a incident form or any other particular form , that request needs to be visible under a related list on the same form (on which we have a related link for the catalog item).

and the table in which we are inserting the data via catalog request is itself a existing related list on the same form.

Can you pls help me , how we build this relationship to get the requests under the desired related list..

For eg-  if I have an incident form and on incident form I have a "xyz" related link to raise a service request and also on the same incident form I have a related list "pqr" then after submission of a service request using the related link "xyz" , this request should be visible under a related list "pqr".

Pls let me know , can we achieve this or pls provide a work around for this type of requirement.

 

 

5 REPLIES 5

Martin Ivanov
Giga Sage
Giga Sage

Hi, if you are passing some refference from the source table to the ritm (e.g. storing the incident sys_id in the RITM, this is easily achievable via scripted relationship). If you do not have any field to establish the relationship between these, then it is not achievable. Let me know if I can help further. 

Please Mark Correct AND Helpful. Thanks!

Martin Ivanov
2022 Community Rising Star


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

Thanks Martin for the reply...

We can create a hidden variable on a RITM form which can store incident(source table on which related list will be available) sys_id , we can't show the field on a form level.

 

But can you pls help me how we can store the sys_id of the incident on the hidden variable on a RITM form and then make use of that in the scripted relationship.

Can you also provide me the scripted relationship sample code as well that I can use as a reference.

looking for  your help to get this requirement completed..

Thanks !!

 

 

Hi. Here are few examples for scripted relationshi. the key thing here is to understand the current and parent objects. Link link

For populaitng the reference field on the ritm, please refer to this one


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

Hey Martin,

Thanks for providing the links. I will refer for scripted relationships.

But can you pls help me to have a hidden variable(which will store the incident sys_id) on a RITM form which we can later use in scripted relationships.

Can you pls provide the steps to follow for this. I have referred the link you have provided but not cleared.

It will be great if you can help. So that I will be happy to mark your answer as correct.