#✅ Get record data by ID via manually triggered flow

5 messages · Page 1 of 1 (latest)

candid yarrow
#

I am trying to create a flow to call an external service that includes the data from the collection record. I cannot find a way to call the Read Data operation to fetch only a specific record, it only will return all records, or the IDs that are hard-coded into the Read Data Operation.

I have tried passing in {{$last}} and other moustache-variants into the IDs field in the Read Data settings, but it appears to only work with hard-coded ID values. Same is true using the graphQL filter syntax option, I can only use hard-coded IDs but not dynamically pass in the IDs of the records that the flow was called on.

Surely there is a way to fetch the CMS record data for record(s) that a manually triggered flow is called on, but how do these ID's get entered into the Read Data operation?

wary bridgeBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please make sure your question includes the following:

  • An explanation of exactly what you're trying to achieve.
  • Any and all related code or previous attempts.
  • The exact issue or error you are facing.
  • Any screenshots if applicable.

When you're done with this thread, please close it.

(If you have a support agreement and need help, please contact the core team via email.)

jagged glen
#

what kind of event is triggering your flow? an item create event?

candid yarrow
#

It was a manual event trigger, which only returns the ids of the selected rows, but I figured out the issue! I needed to stringify the handlebars of the variable in the graphql filter and it worked!

    "filter": {
        "id": {
            "_in": "{{$last.body.keys}}"
        }
    }
}
wary bridgeBOT
#

✅ Get record data by ID via manually triggered flow