Sendgrid is sending two mails but I only need one

I have a N8N workflow like this, where I am getting information from two different sources and now I want to send an email using all information.
Screenshot 2022-12-21 at 08.57.40

My problem is the Sendgrid object is sending two mails (I suppose due it receives 2 items) even I use a merge object to have only one input to Sendgrid.

How can I fix it?

UPDATE
After think about it better, as I need the information of both elements, I changed my workflow to be sequential and avoid errors

Hi there,

Welcome to the community!
You are giving it 2 items so it will run the node twice.
Try using the merge with the combine function. It depends on your data and what you want to send, how you can combine. Try by position first and see what you get.
If this doesn’t have the correct output, please let us know what data is coming from 1 and 2 and what data needs to go into sendgrid.

1 Like

Thanks BramKn for your suggestions. However, after think about it better, as I need the information of both elements, I changed my workflow to be sequential and avoid errors

1 Like

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