Create an incident when task is closed incomplete

dev_K
Tera Contributor

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!

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

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 Roethof
Tera Patron
Tera Patron

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

LinkedIn

dev_K
Tera Contributor

I would like to try to create a business rule: when a task = closed incomplete create a record on Incident table.

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]

****************************************************************************************************************