Split Out Function Will Not Split My Array

I am trying to take an array (with multiple fields) returned by API and use the split out (node) for the ID field to use the loop over items to update individual records via API. No matter what I do I get a split out error when feeding the array to it. I also tried pulling out the ID to create a string and a separate array and it still does not output the result.

What is the error message (if any) ?this.getNodeParameter(…).split is not a function

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:1.81.4

  • Running n8n via (Docker, npm, n8n cloud, desktop app):

1 Like

Hi @Joshua_B ,

Here’s a workflow. Instead of puting the filed in {{field}}, just type it as contacts. I included a secondary way to do it as well.

Best,

Robert

2 Likes

Thanks Robert! So it looks as if you need to feed a string to the split out function. I really appreciate your help on this. Spent 2 hours trying to figure it out.

1 Like

Perfect. Glad it worked for you!

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