How to create a script to create multiple Catalog Tasks?

Andre43
Giga Contributor

Hi,

I have a customer that is requesting to have multiple Tasks (26) created at the same time after the request is approved and when Tasks are all completed then it will create a single Task as Final Review.
I created all Task boxes and using the Branch after the approval and Join after Tasks but it is crazy having all these boxes. It seems also to affect the server performance.

Is there a way to use a Script to create 26 different Tasks at once, each Task has a different short/long descriptions and assignment groups. Also it requires to have all Tasks completed before creating the Final Review Task.

Your help will be much appreciated, I'm a bit lost at this point.

Thanks

1 ACCEPTED SOLUTION

Hi,

I considered it as catalog form with those many checkboxes

If that is for normal table and field then you can modify the logic

But the syntax would remain the same

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

7 REPLIES 7

Hi,

I considered it as catalog form with those many checkboxes

If that is for normal table and field then you can modify the logic

But the syntax would remain the same

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you so much Ankur, it works like a charm and much faster.

Welcome

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader