Create an incident when task is closed incomplete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 06:52 AM
Hi,
What is the best way to create an incident when catalog task fails?
Does it have to be configured in the flow?
Example: A catalog tasks has 5 sequential tasks, if any of them fails (is set to closed incomplete) there will be an incident created.
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 06:53 AM
Hi @dev_K
Flow designer is best way to do this. Just add a condition and then action create Record and set the values from RITM to Incident.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 07:00 AM - edited 07-10-2024 07:01 AM
Hi there,
You could choose multiple mechanisms, business rule, flow, etc.. Flow you could achieve this with zero code and depending on your experience with Flow Designer this could be less than 1 minute task. If no experience with Flow Designer a bit more ofcourse 🙂
If using Flow Designer, do think of the manageability. Because you can just hardcode several field values, or can you do this more manageable, auto populating values / system properties / templates / etc..
(and yes hardcoding is not just what you do in scripting, also if you select a literal value in a condition builder or data pill: its hardcoding)
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 11:19 PM
I would like to try to create a business rule: when a task = closed incomplete create a record on Incident table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2024 12:27 AM
Hi @dev_K
You can use BR , but recommended, dont create a technical debt. Better to go OOTB way and low code, easy to maintain and support. Use Flow designer.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************