Problem iterating "For Each" to create catalog tasks

dolsen1974
Tera Expert

Hello, ServiceNow community!

 

I have an MRVS that I'm I would like to iterate through to generate catalog tasks.  The problem is, it's only creating a task for row #1 in the MRVS.

 

I have a main flow and a sub-flow.  Doing the same action in the main flow works.  However, in the sub-flow, I'm only getting the first row created.

 

When I log out the results of the for each, I do indeed see both rows being rendered.

 

Does anyone have any thoughts on this?

1 ACCEPTED SOLUTION

This is actually a very good idea that I had not considered, trying it now.  Although I don't know why this would make any difference, it is very much worth a try.  Will report the results shortly

 

View solution in original post

9 REPLIES 9

Try to use create a record in the sc_task instead of the "Create catalog task" action:

Marco0o1_0-1692734076922.png

You can share if you have a problem with the execution, for a each that would appear similar to:

Marco0o1_1-1692734126925.png

 

This is actually a very good idea that I had not considered, trying it now.  Although I don't know why this would make any difference, it is very much worth a try.  Will report the results shortly

 

This seems to have done the trick.  Thank you so much!

You're welcome. Would you mind marking my answer as the solution in this case? 🙂

Unfortunately, your answer was not the solution in this case, that belongs to:  "Marco0o1".  I do, however, appreciate your participation 🙂