Hi guys, I’m currently adding a flow to update the coordinates of an item on create/update. The flow runs just fine if I edit the item manually. But when I import the items, the flow failed at the “Update Operation” step because the key is undefined.
I wonder, instead of “{{$trigger.keys}}”, what should I use here to ensure I get the right key for the operation?
Thank you!
Hi there @hrtlkr29
Welcome to the community!
Are you able to share some more details?
I can’t see the trigger data from your example, but the keys you’re looking for might be under something like "{{$trigger.payload.keys}}" instead of “{{$trigger.keys}}”, depending on how you’re “importing” the data.
Take a look at the payload from the trigger in that flow to be sure.
Here’s a solid doc on the Data Chain within Flows. I’d definitely check it out.
Each operation in a flow appends its data to the flow object under the key name that you use. So you would be able to access the key under the previous operation.
For example, if you have an operation called read_data, the results would be available as read_data in subsequent operations. So you could use "{{read_data.id}}" for example.
