Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to show the associated RITM in the related lists of the catalog task form

Not applicable

I need to show the parent RITM number in the Related lists in the catalog task form. Please help me in this.

Thanks,

Regards,

Saloni

1 ACCEPTED SOLUTION

Murthy Ch
Giga Sage

@Saloni

Create a new relationship under System Definition> Relationship

(function refineQuery(current, parent) {

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

})(current, parent);

find_real_file.png

find_real_file.png

Let me know if it works for you

 

Thanks

 

Thanks,
Murthy

View solution in original post

5 REPLIES 5

Murthy Ch
Giga Sage

@Saloni

Create a new relationship under System Definition> Relationship

(function refineQuery(current, parent) {

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

})(current, parent);

find_real_file.png

find_real_file.png

Let me know if it works for you

 

Thanks

 

Thanks,
Murthy

@Saloni

 

Did you get a chance to check my response?

 

Thanks,

Murthy

Thanks,
Murthy

Not applicable

Hi Murthy,

Thank you for your help. It works!

Regards,

Saloni

Not applicable

Hi Saloni,

 

First go to system definitions=> relationship and then create a new relation with RITM on task name and then applies to table will be 'Catalog task' and Queries from table will be 'Requested Item'

 

 and this is the script

 

(function(){  

 

  current.addQuery("request", parent.request);

 

  current.addQuery("table_sys_id", parent.request_item.toString());

 

})();

Now save this relationship.

Go to service catalog => task and open the record and configure => related list and bring in RITM on task to right and save. This should show you your request item.

 

Please mark my reply as Correct & Helpful, if applicable.

Thanks

Sandeep