FeatureFuel
1

In flows, why {{$trigger.keys}} for the key on action create, and {{$trigger.keys[0]}} on action update

Source: directus/directus#25274 · opened by @Pachat
Summary I have a flow trigged on create and want to have it also on update. I found out that the key of the collection's item is {{$trigger.keys}} on create and {{$trigger.keys.0}} on update. Why this difference (i understant that there is just one value on create, but a possible array on update? How handle this diffeence? Do i have to create 2 flows, on for create, the other one for update the collection? Basic Example _No response_ Motivation To simplify the creation and maintainance of flows Detailed Design Either • on the directus par, use {{$trigger.keys}} on both case • on the devloper; give him the abilyty to use expressions: None of these worked • {{$trigger.keys[0] || $trigger.keys}} • {{$trigger.keys[0] ? $trigger.keys[0] : $trigger.keys}} • {{$trigger.keys.0 || $trigger.keys}} • {$trigger.keys | first}} • {{$trigger.keys.0}} Requirements List Must Have: • A • B Should Have: •…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests