Link between Case & Request

steveturley
Tera Guru

Hi,

 

I'm trying to find an easy way to display the link between a Case and a Request created from that Case

On the list view from 'Cases' > 'All', you can display 'Incidents' (highlighted in the screenshot), but there appears to be no way of adding 'Requests' either from that list of via a related list in the Request

 

Thanks!

7 REPLIES 7

Hi @Community Alums I did go through what you shared but it didnt not solve my problem. I am able to do all what I want through a record producer, but not a cat item..

Ive created a separate thread for my issue https://www.servicenow.com/community/csm-forum/how-to-populate-a-related-request-field-in-case-form/td-p/2348999

Alex

Community Alums
Not applicable

Alex D Great
Tera Contributor

I can not make this work through a cat item. However, creating a record producer with a trigger such as 'initiated as a request' on a business rule with current script will populate a (u)request field on the case table (unfortunately, I cant make this work from creating a cat item)

This is the script I am using for BR:

(function executeRule(current, previous /*null when async*/) {

// Add your code here
var gr = new GlideRecord('sc_request');
gr.initialize();

gr.short_description = current.short_description;
gr.description = current.description;
gr.special_instructions = current.special_instructions;
gr.company = current.account;
gr.assignment_group = current.assignment_group;
gr.contact_type = current.contact_type;
gr.requested_for = current.contact;
gr.u_request_type = current.u_case_type;

gr.parent = current.sys_id;
gr.insert();
current.u_request = gr.sys_id;

})(current, previous);

AHN_0-1665579790356.png