1

I've created a simple Directus flow:

  1. Trigger is items.update for collection invoice
  2. Operation is update data in the same invoice collection

As a payload I have (note the array):

[
  {
    "id": 16,
    "temp": 16
  }
]

This sound strange but it's only for testing purposes. I want to update multiple items for the same trigger, each item with it's own data. In the future, that array will be computed by another operation.

The above payload won't work. Field temp isn't set for that invoice.

enter image description here

2 Answers 2

0

We can update multiple items through flows. You can use patch option in the flows. For more details, please check the following link which has example.

https://github.com/directus/directus/discussions/16258#discussioncomment-7653287

Sign up to request clarification or add additional context in comments.

Comments

0

Add trigger another flow in you flow and pass the array to the chained flow, so the chained flow will run iterate/loop from your array to execute update based on each items in you array for more details please follow the course video: https://youtu.be/K5fjV3YY5y0?si=LNdrZ8PxupvFTuy3

1 Comment

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.