Link between Case & Request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2022 07:20 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 05:58 AM - edited 10-12-2022 06:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 10:44 PM
Hi @steveturley ,
Refer to this thread : https://www.servicenow.com/community/csm-forum/how-to-associate-request-to-case/m-p/412855
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 06:03 AM - edited 10-12-2022 06:05 AM
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);