I’m trying to create a workflow that captures responses from a multi page survey. The responses then get calculated and turned into a Pie Chart which then becomes an Email attachment. (Up to this point, it works), Then want to replay the responses in the email body as a HTML table.
I would like to suggest the following changes:
For the Code Node, it should only be executed after the Red Node. If not adjusted this way, the Code Node would run after each step in the form process, even if only the second or third page has been completed and not all values are yet available. This would lead to the creation of four separate HTML documents instead of just one.
Additionally, a Merge Node is needed before the Outlook Node. Without this, the Outlook Node would execute twice – once with the Pie Chart and once with the HTML document. If both are needed, it’s better to combine them using a Merge Node.
Hi @n8nnoob, I suggest following @Franz’s recommendations, as the screenshot shows you’re already experiencing the issues he mentioned—namely, the four HTML items along with the merge node…
Thanks for your input, I tried to do what you have said, but it hasn’t been successful yet
I have made the code node only execute after red, and I have also added a Merge node before outlook.
It still gives me an error saying no binary file exists. The output does Send me an email, but it is just the graph image sent as an attachment, and has no text in the email body.
I executed the test workflow from the beginning, filled out the survey, and it sent an email, received the attachment as well as the table, but the style of the table seems to remain different column widths
I’m not too sure how I learn from this for future, as I also don’t understand why the previous solutions didn’t work. Might just save these to reference haha.