Why I am not able to send a JSON Array?

I have a simple action here, simply want to add value to a one to many field.
I have tried [5640] or [5640,123] But it said wrong value

Below image is a screenshot when I get a record value.

It is something like this

[
977,
978,
979,
980,
983,
982,
981
]

I also tried to use this as a static value. However it still saying wrong value.

Any ideas what I should do?
Thank you very much.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Blueli

Would you be able to share your workflow? :eyes:

Hello

Sure,
There is a resource on Odoo that I want to add the user ID to a one-to-many field which returns an array.

Thanks

This is a simple example of my workflow.

After looking at some other thread I managed to resolve it by using something like this {{ [123] }}

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.