Control Nodes Execution

Hi there,
Thanks for this powerful tool I like it so much, this is my first workflow hope to have good feedback from experts.

My problem now is:
I built a workflow to publish the WordPress post to the social media page … after publish I saved the post to Google Sheets to prevent it from being added again. The problem now three records added to Google Sheets from each node… I added an aggregator to prevent loading three records but each time moved through the aggregator and inserted the record.

Share the output returned by the last node

Information on your n8n setup

  • n8n version:latest - cloud
  • Database (default: SQLite):default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):cloud
  • Operating system: cloud

hello @AhmedAlnaqa

Aggregate node doesn’t work with multiple inputs. Use the Merge node for that :slight_smile:

thanks so much.

but I have another problem:

I have now two problems:
1- I add merge node but still out three records … it must me just 1 record.
2- In the google sheet node I add a confirmation field called " Facebook" and “Instagram” to add “ok” in case of retrieve ID and POST ID from facebook or ID only from Instagram but when I try to create an if statement it returns Empty value:
{{ $json.Facebook_PostID ? 'ok' : '' }}

thanks so much

Hi @AhmedAlnaqa,

Which node does output three instead of just one item, and why? If you cannot prevent that, you might find the “Remove Duplicates” node helpful.

the merge node,
the output include three records in google sheet … I need to be just one!.

thats all

Use Merge Node in Combine mode (Combine by Position type), append will just add 3 input items as 3 output items

1 Like

Thanks, @barn4k for your support

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