Salesforce platform events capture - to trigger N8n flow

I could not find node of trigger type, which will start workflow when “platform event is publishjed from salesforce”.

I am looking for support in n8n to listen to platform event as soon as published by SalesForce.

Webhooks is a common approach to trigger a workflow in n8n. It’s my go-to. Have you looked into that? Just search for “Webhook”. Many platforms, such as salesforce, can make a HTTP request.

Khem

If you want to trigger a workflow from a salesforce even. You need to make a http outcall from salesforce. This will require a professional or enterprise salesforce license. The build in salesforce triggers are not good.

As for http out call. You do NOT want to use the http outcall element in the flow builder. You want to create a apex class (do this in sandbox & have gemini 3.0 walk you through it & matching test class.) Once the trigger is sent to your n8n webhook you can grab all the data you need using the salesforce node via soql or standard node settings.

IT is best to build a playload in salesforce and have a serializer apex class to ensure you payload is clean and ready to be sent.

Trigger in salesforce - flow does the heavy lifting - http out call sends all needed recored ids to n8n - n8n uses salesforce node to pull all data over that it will need.

2 Likes

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