Does n8n support real time read salesforce Object change ?
trying to achieve following scenario through n8n workflow
I have 3 salesforce instance such as 1. Salesforce org 1 instance 2. Salesforce org 2 instance 3. Salesforce org 3 instance
n8n workflow should trigger as soon as lead is either created or updated in Salesforce org 1 instance and then based on certain flag in Lead ,flow should create/update lead in Salesforce org 2 instance and Salesforce org 3 instance .
Creating lead in Salesforce org 2 instance and Salesforce org 3 instance is not an issue.
Real issue here how can I trigger workflow when Lead is created or updated in Salesforce org 1 instance.
Cron or scheduler’s will not work to read real time lead change
is creating webhook and trigger it from salesforce by passing additional field such as action (created/update/delete) and Lead Id will work?
Information on your n8n setup
Running n8n with the execution process [own(default)]:
What If I create webhook as an entry point for starting web flow in n8n by passing lead Id and share URL with salesforce development team to hit URL (using http client call in salesforce -custom development) every time they make change to Lead in salesforce.
Will that work ?
Hi @jay.singh, as for the cron approach you might want to take a look at this blog post:
This would explain the basic concept of polling (for Google Sheets in this case, but can be transferred to other services too).
If you (or your development team) can trigger webhooks/http requests from Salesforce, you can indeed use n8n’s webhook node to send data from Salesforce to n8n. The webhook node is rather flexible, so you can configure for example any HTTP method needed by your development team. When using the webhook node, keep in mind there are two different URLs (test and production). The difference is explained here in the docs.