Create a sample workflow to sync data from Salesforce and API Proxy
Workflows
and create a new workflow by clicking on +Add Workflow
button and name it as Sync Opportunities
.
Add Trigger in Start Node
Start Node
, select your native app option and click on + Create New Event
.Add Salesforce Node
Nodes
option in the top right and drag the Salesforce Node from Native Apps section to the workflow builder. Connect this node with Start Node.Fetch Opportunities from Salesforce using Action
Get Entity with SOQL
action.SOQL query
field and click on Save
.Add Custom Code node
Mapping Opportunity fields
+ Map Fields
under Input Parameters, add key name as deals
and in value we will provide the response received through Salesforce node which will be restructured.In Value
, select Nodes tab under Insert Variable and click on +
of the Salesforce Node.API Proxy in Workflow
Developer
> API Proxies
and click on New Action
. Configure an API endpoint, where you want to receive the response.If you want to test, go to webhook.site and copy Your unique URL
and configure this as a POST Request and Save
.Use API Proxy in Workflow
Save
.Select Node
Run Node
Input/Output
tab and click on Run Node
button.
Run Workflow
button to perform a test execution and a Test Run log is generated with output of each node.