Salesforce - New record trigger (real-time)

This trigger monitors Salesforce in real-time for newly created objects.

Input

Input fieldsDescription
ObjectSelect the object type to monitor.
Fields to retrieveSelect the fields to retrieve from the object. Workato retrieves all fields by default. Entering specific fields to retrieve improves recipe performance and mitigates schema errors.
When first started, this recipe should pick up events fromSet the date and time to start picking up trigger events. This enables your recipe to capture past events. Refer to Triggers to learn more about this input field.

Configuration in Salesforce

Complete the following steps to configure the trigger in Salesforce:

1

Refer to the Input section to configure the input fields for this trigger. Workato generates an endpoint URL in the collapsible HELP section based on the Object you select and the connected Salesforce organization.

2

Copy the endpoint URL. This URL tells Salesforce to send real-time events about relevant objects to this Workato recipe.

WARNING

This endpoint URL is unique to the selected object and connected Salesforce organization. You must regenerate this endpoint URL if the object or Salesforce connection changes.

Workato generates endpoint URL for Salesforce flowWorkato generates endpoint URL for Salesforce flow

3

Use the endpoint URL to configure a new outbound message in Salesforce for the object type this trigger monitors.

4

Go to Setup > Process Automation > Flows in your Salesforce organization and click New Flow. The Salesforce flow setup wizard opens.

Open the Salesforce flow setup wizardOpen the Salesforce flow setup wizard

5

Select Record-Triggered Flow, then click Create.

Select Record-Triggered Flow in SalesforceSelect Record-Triggered Flow in Salesforce

6

Select the Salesforce object type to monitor. In Configure Trigger select A record is created. In Optimize the Flow for select Actions and Related Records.

WARNING

Do not set any entry conditions as this conflicts with the backup polling mechanism in place.

Set up the Salesforce flow to be triggered when record is createdSet up the Salesforce flow to be triggered when record is created

7

In the Flow Builder view, click + (add element) and select Action.

8

Go to the Outbound Message tab.

9

Select the Outbound Message that you previously configured for this trigger.

10

Click Done, then Save.

Add Outbound Message as action in Salesforce flowAdd Outbound Message as action in Salesforce flow

11

Enter a label and an API Name for the flow, then click Save.

Save the Salesforce flowSave the Salesforce flow

12

Click Activate.

Activate the flow in Flow BuilderActivate the flow in Flow Builder

13

Return to Workato and start the recipe.

You can test that the recipe is working by causing a trigger event in Salesforce while the recipe is active. Workato creates a new job immediately if the Salesforce flow and Workato trigger are configured correctly.

Output

The output of this trigger varies based on your selected Object and Fields to retrieve. Refer to Salesforce's Overview of Salesforce Objects and Fields guide for more information on available objects and fields.

Last updated: