Although I am not certain and some testing could confirm it, but perhaps setting multiple inputs into the code node and setting it to run once per item, makes me logically think that it is running on each entry, and obviously one would be undefined if the other runs first.
Did your merges not work? Or perhaps try changing the input to all instead of each for the code node.
I want each value of hubSpotUserEmails will iterate into each value of brevoUserEmails, if it matches then matched value will be assigned to matchedEmail else assign $(“Merge”).first().json[“brevoUserEmails”]; to it and return the matchedEmail
because of undefined values I am not able to get this.
Why are you trying to do so? The data from Brevo and Hubspot may be returned in a different order as well as the amount of the returned emails could be different. The one-by-one comparison won’t work in that case
Thanks, @barn4k and @ThinkBot, for your response. I have found a workaround and fixed the above issue.
Could you please help with the following?
Issue 1: In the HTTP node, the Body Content Type is form-data, and the parameter type is Parameter Type. Even though I am passing the file as a body parameter, it is still showing an error.
Passing you a file or a link to file? If it is a file, I suggest using the n8n Binary File as the parameter type. Is it is a link, then check that the link is correct and the file is accessible