Configuring Salesforce for Salesforce-to-Service Board Real-Time Sync for Custom Objects
After you configure Service Board to support Salesforce-to-Service Board real-time sync for custom objects, you must define process builders and custom field sets on the Salesforce side.
* 
You must configure real-time sync separately for each custom object in your Service Board tenant.
To configure real-time sync for custom objects in both directions between Salesforce and Service Board, special configuration steps are required. For more information, see Configuring Two-Way Real-Time Sync for Custom Objects.
To configure Salesforce for Salesforce-to-Service Board real-time sync for custom objects:
1. In Salesforce, on the Setup page, in the left pane, under Platform Tools, expand the Process Automation node, and then click Process Builder.
2. On the Process Builder page, in the top right corner, click New, and then in the New Process dialog box, complete the fields as follows and click Save.
Field
Value
Process Name
A name for the process, for example, Notify Service Board for Work Detail.
API Name
Auto-populates based on the text you enter in the Name field, for example, Notify_Service_Board_for_Work_Detail. You can modify this to any unique value.
Description
A brief description of the process.
The process starts when
A record changes
3. On the Process Builder page for the newly created process, in the left pane, click the Add Object process element, and then in the right pane, complete the following fields and click Save.
Field
Value
Object list
Select the custom object for which you are configuring real-time sync.
Start the process list
only when a record is created
4. In the left pane, click the topmost Add Criteria action element, and then in the right pane, complete the fields as follows and click Save.
Field
Value
Criteria Name
Is New
Criteria for Executing Actions
Formula evaluates to true
Build Formula
ISNEW()
5. In the left pane, to the right of the newly created action element, in the Immediate Actions box, click Add Action, and then in the right pane, complete the fields as follows and click Save.
Field
Value
Action Type
Apex
Action Name
Platform Event
Apex Class
SVMXSB__SB_ProcessBuilderHelper
Set Apex Variables: Event Name
Type: String
Value: Create
Set Apex Variables: Record Id
Type: Field Reference
Value: [<Salesforce API Name>].Salesforce API Name, for example, [SVMXC__Work_Order_Line__c].SVMXC__Work_Order_Line.
Set Apex Variables: Object Name
Type: String
Value: Salesforce API name for the custom object.
6. In the left pane, click the next Add Criteria action element, and then in the right pane, complete the fields as follows and click Save.
Field
Value
Criteria Name
Is Changed
Criteria for Executing Actions
Formula evaluates to true
Build Formula
Criteria for triggering the action, for example:
ISCHANGED([Account].OwnerId)
||
ISCHANGED([Account].Name)
||
ISCHANGED([Account].ParentId)
||
ISCHANGED([Account].SVMXC__Preferred_Technician__c
7. In the left pane, to the right of the newly created action element, in the Immediate Actions box, click Add Action, and then in the right pane, complete the fields as follows and save and activate the process builder.
Field
Value
Action Type
Apex
Action Name
Platform Event
Apex Class
SVMXSB__SB_ProcessBuilderHelper
Set Apex Variables: Event Name
Type: String
Value: Update
Set Apex Variables: Record Id
Type: Field Reference
Value: [<Salesforce API Name>].Salesforce API Name, for example, [SVMXC__Work_Order_Line__c].SVMXC__Work_Order_Line.
Set Apex Variables: Object Name
Type: String
Value: Salesforce API name for the custom object.
8. Create a new field set for the custom object you are configuring for real-time sync support and add the required fields to be synced to Service Board.
* 
If any custom field sets were previously created for other Service Board objects, be sure to use the same API name for the newly added field set.
9. In the active Org-Wide Configuration Profiles, in the Service Board submodule of the Dispatch Management module, update the SET003 setting with the API name for the newly created custom field set.
For more information:
Was this helpful?