How to check Run Script errors and trigger a Task in the workflow ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 12:35 PM
I have a Catalog item that takes in hardware and ip information from users then workflow creates network adapters, IP information to the hardware.
I am looking to add a task that would kick off when the entire process fails or Run Scripts failed to add the information to CIs. Please let me know if anyone have suggestions. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 01:03 PM
On your run scripts you can right click to choose "Add Error". From there, you can send the path to a task for someone to follow up. If the errors aren't getting flagged by the run script itself (you see that updates aren't happening but the run script shows finishing successfully), then I would add an "if" after to run a query against the record you should have updated to ensure the details match what is expected. If not, then route the "no" to your task and "yes" to the next step.