Link case to incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 03:47 AM - edited ‎11-14-2023 04:40 AM
Hi
I need a script to implement the below use case:
When Incident is attached to the case
Then the respective related Case is shown on the Incident form via the case field.
Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 03:25 PM
What is the need for this direct link from incident to case?
There is an OOTB related list showing all cases where incident field is filled with the specific incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 05:51 PM - edited ‎11-14-2023 05:58 PM
From case to incident?
Can you please explain
I am taking about incident form with the same case filled in the case field as per the screenshots.
I could see related list of incidents in case not in the incident i have created a reference field case and added in the incident form . Now i need to copy the incident number attached to case. When i open the same incident number the respective case number should be added. I thought it is an OOB functionality but that was not happening
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2023 01:14 PM - edited ‎11-16-2023 01:17 PM
Navigate to System Extension Points -> Scripted Extension Points.
Open sn_cs_sm.CSMIncidentIntegrations
Add your script to the example field in the function copyFieldsFromCaseToIncident()
After creating navigate to the related list Implementation on the extension point and set the order higher than the OOTB implementation.
Now the case will be added to your reference field on the incident table without customizing any OOTB scripts.
Doing this might give you trouble if you relate multiple cases to the same incident. So maybe it is sufficient to just show the Customer Cases Related list to the incident form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 08:21 PM
Hi
The Incident field in the Case form is a Reference field type. That means 1 Incident can contains many Cases.
So when you update the Case which is linked to a specific Incident, it will display that Case under the Related List of the Incident.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 08:36 PM - edited ‎11-14-2023 08:39 PM
Hi,
Thanks for your reply
My requirement is to update the related record section as mentioned in the screenshot
incident.case_number = case.incident_number