Workflows
and create a new workflow by clicking on +Add Workflow
button and name it as Create New Contact
.
Building Workflow
Follow the steps given to build the workflow:1
Add Trigger in Start Node
All workflows start with a trigger, which determines when the workflow will run and how data is passed into the workflow.
For this workflow we will use the Event Based trigger.Click on the
Give a name to your event and provide all the data related to the contact in the payload.
Learn more about the triggers and its types here.
Start Node
, select your native app option and click on + Create New Event
.
2
Add Salesforce Node
Now to create a new contact in Salesforce, we need to call Salesforce API.Click on
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.3
Add Action in node
Click on Salesforce Node and add the 
Create Contact
action.
To provide the data in all the fields from your Event payload, just click on a field and from the Event tab under Insert Variable, select the fields from the body that you sent as payload.
Ensure that all the mandatory fields in the action are filled, else the Salesforce API will give error.
Refer to the Trigger Event API here to fire the event and workflow.
Test Workflow
Once your workflow is built, you can perform both node level and workflow level testing to check it. Before testing a workflow, ensure the following pre-requisites are completed:- Linked Account configured with authentication completed with the integration.
- Sample Payload for testing is available & configured.
Learn in depth how you can configure the pre-requisites in our Workflow Testing guide here.
Testing Node
1
Select Node
Click on the node you want to test.
2
Run Node
In the node, switch to 
Input/Output
tab and click on Run Node
button.
Testing for Group Node and Pagination is currently not supported.

Once the node executes successfully, a checkmark appears on the node, indicating it has been tested.
Testing Entire Workflow
Open the testing modal present at the bottom. Click onRun Workflow
button to perform a test execution and a Test Run log is generated with output of each node.
Since testing for Group nodes is not supported currently, you might not receive the logs of the group node.

Hurray!!You have successfully created and tested a Salesforce workflow to create a new contact.