Skip to content

Flows: Unable to use {{$last.body.keys}} in a read data Operation #13787

@vanling

Description

@vanling

Describe the Bug

When trying to pass on multiple keys to an read/update operation the keys are parsed as

"key": [
    "[\"03389a8b-4309-498a-b65b-9d0853d8881b\",\"60cbaa7c-de55-4154-981f-c993df1633be\",\"ba3cabf9-570e-4039-8707-2b80b3d44005\"]"
  ]

I expected to get the following

"key": [
  "03389a8b-4309-498a-b65b-9d0853d8881b",
  "60cbaa7c-de55-4154-981f-c993df1633be",
  "ba3cabf9-570e-4039-8707-2b80b3d44005"
]

and continue in the flow with the selected id/values

To Reproduce

  1. Create a manual trigger
  2. follow up with a read data
  3. Add {{$last.body.keys}} as ID's

Errors Shown

No response

What version of Directus are you using?

9.12.1

What version of Node.js are you using?

v16.15.1

What database are you using?

mysql-server-8.0

What browser are you using?

Edge

How are you deploying Directus?

npm install on ubuntu server

Images

Schermafbeelding 2022-06-08 om 19 26 32

Schermafbeelding 2022-06-08 om 19 27 19

Schermafbeelding 2022-06-08 om 19 28 12

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions