Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to create multiple sctask based on the selection in catalog item.

Vinod S Patil
Tera Contributor

Hello Community,

In catalog item using one list collector variable Assigned_to .  when user select one user then flow should create one sctask.

if user select two users, then flow should create two sctask.

how can I do it, please suggest me, I am using flow designer for this catalog item.

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Vinod S Patil Here is how you should configure the flow for your catalog item.

 

Screenshot 2024-09-27 at 10.35.22 PM.pngScreenshot 2024-09-27 at 10.35.33 PM.pngScreenshot 2024-09-27 at 10.36.06 PM.pngScreenshot 2024-09-27 at 10.36.25 PM.png

Please mark my response helpful and accepted solution if it addresses your question.

View solution in original post

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@Vinod S Patil Inside your flow, you can use the split operator to split the comma separated assigned_to variable value (which is noting but comma separated sys_ids of the chosen users) and use a For each block to fetch the value of assigned to user record, you can use a Create Record action in the same For each block to create an SC task and assign it to the user extracted using split+look up record step.

 

Hope this helps.

Sandeep Rajput
Tera Patron
Tera Patron

@Vinod S Patil Here is how you should configure the flow for your catalog item.

 

Screenshot 2024-09-27 at 10.35.22 PM.pngScreenshot 2024-09-27 at 10.35.33 PM.pngScreenshot 2024-09-27 at 10.36.06 PM.pngScreenshot 2024-09-27 at 10.36.25 PM.png

Please mark my response helpful and accepted solution if it addresses your question.

Vinod S Patil
Tera Contributor

@Sandeep Rajput Thank you so much 🙂