Flow Designer - If multiple records are found action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 07:04 AM
Newbie here with a question about Flow Designer: I'm going through the process of learning Flow Designer and following a tutorial on ServiceNow Support's YouTube page which shows how to create a basic flow to update Task records when a User's status is changed to Inactive. The version in the video is different than the current version and there are different fields available to me in my lab instance.
The basis set up is the same:
- Trigger: User updated where (active changes to false)
- Actions: Look Up Record > Table: Request > Conditions: Opened by Usser Record
Where I'm getting tripped up is this field that says If multiple records are found action where the only two options are "Return only the first record" or "Fail the step". I don't want to do either of those things. I created two records for the purpose of testing this but I'll want to update both of them. Can anyone explain how I should proceed and/or what the purpose of this field is?
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 08:37 AM
Hi @AGX-07 ,
Steps to update multiple records:
- Look up records (Action)
- For Each Item (OOB Flowlogic)
- Update Record
Please see the following screenshot for a visual representation of these steps:
To see if multiple records were updated or not, there is a small checkbox next to the For Each Item step.
Please mark ✅ Correct if this resolves your issue, and also mark 👍 Helpful if you find my response valuable based on the impact.
Regards,
Astik Thombare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 09:27 PM
Hi @AGX-07 ,
Please mark ✅ Correct if this resolves your issue, and also mark 👍 Helpful if you find my response valuable based on the impact.
Regards,
Astik Thombare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 08:56 PM
Hi @AGX-07
I think you are using "Look up record" (for getting one record).
If you want to retrieve multiple records, you can use the Action for multiple records called "Look up records".