Introduction π
Juro's Salesforce integration allows a two-way sync with Account, Opportunity, User, and Contact fields. Additionally, it's possible to set up a two-way sync on additional object fields within a custom flow.
β
There are two steps for this setup:
Creating a Lightning Flow to capture data changes and pass them to the Juro Contract object
Administering Custom Metadata Type records to whitelist objects for Juro Template validation.
Let's get started!
β
π‘ NB: Juro's Negotiation flow cannot be activated for any contracts generated from Salesforce.
Step 1οΈβ£ Creating the Lightning Flow π©οΈ
The below steps will create a flow to retrieve the custom object field data and initialise the sync job. These can be followed for Salesforce standard and custom objects.
β
To see a video of an example flow where we set it up for the Salesforce Order object, click here. To start the setup from the Salesforce Setup portal:
Under the Process Automation heading, select Flows, and then New Flow
Select the Record-Triggered Flow type:
Select the required object (Order, in the below example)
Select to trigger the Flow when βA record is updatedβ
Optimise the flow for Actions and Related Records
Click Done
Click the + icon in the Record-Triggered Flow chain
In the Add Element menu, select Action
In the New Action menu that opens, type βapexβ to find and select initialize sync job.
Step 2οΈβ£ Setting up the action ποΈ
To set up the action:
Populate the Label field
Under Select Objects, select the object (Order, in our example) for both inputs ('newSObject' and 'oldSObject')
Under Set Input Values, add the values from the dropdown menu for both inputs ( {!$Record} and {!$Record__Prior} respectively
Click Done
In the Save the Flow window that appears, add a Label and API Name for the new Flow: the API Name is needed in the next step during the Custom Metadata Type record creation
Click Save.
Step 3οΈβ£ Creating the Custom Metadata Type record π¦
The following steps will enable a two-way (or outbound) sync for the chosen Object (Order, in our example).
β
To do this, from the Salesforce Setup portal:
Go to the Custom Codes section in the Salesforce Setup page and select Custom Metadata Types to find the existing record JUROTwoWaySyncObjects.
Then, select Manage Records next to this item
Click New
Select the object name from the dropdown picklist and input the API name from the previous step.
βπ‘ NOTE: if the Flow was not activated, an error will be shown here. If this happens, please activate the flow and retry this stepSave the Record.
Step 4οΈβ£ : Testing the synchronisation π°οΈ
The object selected for the above steps must be reachable from JUROContract by lookups for mapping. E.g. The JUROContract object has a lookup to the Opportunity, thus, Opportunity fields are shown within the path builder. JUROContract will require a lookup to the necessary object in order to expose the fields for mapping within the path builder.
You can then map fields using the path builder, selecting the path parent to child object/field and clicking Save. The path will be submitted and the synchronisation type can be set within the respective column.
If the above steps are not followed for the required object, the below error will show:
If the setup is successful, the mapping and sync type will be saved:
πββοΈ As always, our Support Team is happy to help you with anything further if needed. Start a chat with us right here by clicking the Intercom button in the bottom-right-hand corner of this page.
Alternatively, you can email your query to support@juro.com π