Need a little help to complete the code node

Hi!

How do I reverse it?

I have 1 (at the input) and I need to convert it to 2 (get an array).
I started to do, but since I don’t know javascript I don’t understand how to write it correctly. Please help me finish it.

Thank you very much!

Please share the workflow

@BramKn Could you please help me with this?

@Mikhail

I like helping people on the forum. But please do not tag me on a new question, especially not when the topic was just created.
This comes across as very impatient and causes me not to answer the question anytime soon.

If you want me to answer your questions, you can of course hire me to do so. :wink:

1 Like

Yes, I understand, I’m sorry - it’s my fault.
How much do you want for helping me in this case?

2 Likes
$input.all().forEach( 
  e => e.json.Images = {
    Image: e.json.ImageUrls
      ?.split(" | ")
      .map( i => ({ url: i }) )
  } 
)

return $input.all();
1 Like

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