Retrieving a series of records using List records and ForEach
Get record has one limitation – you need to already know the record you are interested in and need to use its GUID (its primary key identifier) to call the record in full. If we want to obtain a series of records that meet given criteria, we use List records.
Exercise
We are going to amend the logic app to return a series of names and then send these back in one message to Postman in the following steps:
- Remove the Get record action and the dynamic parameters from the Response action's body.
Tip
To remove an action, or to rename it, click the more button (three dots) on the right of the action's title, and from the list of settings, select Delete.
- In place of Get record, add List records from the Common Data Service suite using the same method as Get record earlier.
- Set the action with the following parameters: