My flow for updating a field on create doesn't work

The flow I created to update the value of the status field to COMPLETED on items.create does not work.

The flow says that I do not have permission, even though I have an Administrator profile and I set the permissions to Full Access.

Directus v11.17.1

Images bellow:

2 Answers

2

I managed to fix it!

I changed the value of the Operation IDs field from {{$trigger.payload.id}} (as per the documentation https://directus.io/docs/guides/automate/operations#update-data) to {{$trigger.key}}.

Hey @pporto, welcome to the forum! Thank you so much for including the solution and marking it as answered, appreciate you!

Hi @beth! Thanks for the feedback! Perhaps it's important to adjust the documentation which suggests the variable value as {{$trigger.payload.id}}, but {{$trigger.key}} is what works, at least in my use case. Thanks! https://directus.io/docs/guides/automate/operations#update-data