Flow Designer>>Action to create multiple records?

stefankatro
Giga Contributor

Example requirement:
- There is a date field on a CI indicating when you need to run a system check on the CI
- I want ServiceNow to check daily if there are any CIs where this date is today
- If yes, create a task for each one of them

Above sounds like a job for Flow Designer so I made a test:
1. Find records with some criteria
2. Loop through all of them
3. Create a record for each

find_real_file.png

Problem:
The above creates only one record even though in step 2 (for each item) the system finds multiple records. 

How to create multiple records then?

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

I think you've added your step in the wrong place.  If you click the tiny '+' icon under the 'for' loop and create the same activity does it work?  If you've done it correctly you should have an action at order 2.1 instead of 3.

View solution in original post

4 REPLIES 4

Mark Stanger
Giga Sage

I think you've added your step in the wrong place.  If you click the tiny '+' icon under the 'for' loop and create the same activity does it work?  If you've done it correctly you should have an action at order 2.1 instead of 3.

Thanks Mark! This was the issue, now I get multiple records.

Hey @Mark Stanger ,

I have similar requirement, but i am unable to a achieve it.

I am trying to insert/Update a list collector values based on the record already existing or not.

can you please help me this?

find_real_file.png

sidkak
Tera Contributor

Have put the step in the right place still the 1st record is created 3 times on the target table. Not sure what am i doing wrong.

find_real_file.png