- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2024 08:20 PM
Hello Guys,
There is a business rule which closed the related Incidents if the problem state is 4.
Below is the code:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 06:18 AM
Hi @neeraj22671,
1) getMessage() accepts a second parameter to replace the placeholders in the message. For example, {0} will be replaced with the value of incident.number and {1} with the value of me.number.
2) me is a GlideRecord that is passed to the function closeRelatedIncidents(me) as a parameter.
Best regards,
Rene
Please mark as correct/helpful if my answer helped you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 06:18 AM
Hi @neeraj22671,
1) getMessage() accepts a second parameter to replace the placeholders in the message. For example, {0} will be replaced with the value of incident.number and {1} with the value of me.number.
2) me is a GlideRecord that is passed to the function closeRelatedIncidents(me) as a parameter.
Best regards,
Rene
Please mark as correct/helpful if my answer helped you!