How to check Run Script errors and trigger a Task in the workflow ?

Paul125
Kilo Guru

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!

 

find_real_file.png

1 REPLY 1

kristenankeny
Tera Guru

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.