Configuring Initial Sync for the Dispatch Priority Field
You can configure Service Board to use the Dispatch Priority field of the Salesforce Work Order object during schedule optimization. The functionality is disabled by default, so to make it available to users, your first steps are to configure initial and real-time sync.
To configure initial sync for the Dispatch Priority field:
1. In Salesforce, create a new custom field set, and then add the Dispatch Priority field of the Work Order object to the field set.
* 
For details on how to create field sets, see Configuring Real-Time Sync to Support Custom Fields on SFDC.
2. In Max Designer, on the Developer Tools () launchpad menu, click Initial Sync Actions, and then in the list view, click Initial Sync Jobs.
3. On the record page, on the Overview tab, in the Query URL field, add SVMXC__Dispatch_Priority__c into the code, for example:
/services/data/@{SFDC_RESTAPI_VER}/query?q=SELECT+id,SVMXC__Preferred_Business_Hours__c,SVMXC__SM_Life_Cycle_Status__c,SVMXC__Service_Group__c,SVMXC__SM_Lock_Appointment_Schedule__c,SVMXC__Group_Member__c,SVMXC__Company__c,SVMXC__City__c,SVMXC__Country__c,SVMXC__Contact__c,SVMXC__SM_Estimated_Duration__c,SVMXC__Service_Duration__c,SVMXC__Component__c,SVMXC__Site__c,Name,SVMXC__Zip__c,SVMXC__Preferred_Technician__c,SVMXC__Preferred_End_Time__c,SVMXC__Preferred_Start_Time__c,SVMXC__Priority__c,SVMXC__Problem_Description__c,SVMXC__Product__c,SVMXC__Primary_Territory__c,SVMXC__Purpose_of_Visit__c,SVMXC__Scheduled_Date_Time__c,SVMXC__State__c,SVMXC__Street__c,SVMXC__Order_Type__c,SVMXC__Latitude__c,SVMXC__Longitude__c,OwnerId,SVMXC__Skill_Set__c,SVMXC__Order_Status__c,SVMXC__Dispatch_Status__c,SVMXC__SM_Version_Number__c,SVMXC__Dispatch_Priority__c,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate+FROM+SVMXC__Service_Order__c+WHERE+Name+!=+null+AND+SVMXC__Company__c+!=+null+AND+(SVMXC__Order_Status__c+=+'Open'+OR+SVMXC__Order_Status__c+=+'Closed')+AND+(SVMXC__Dispatch_Status__c+=+'New'+OR+SVMXC__Dispatch_Status__c+=+'Assigned')+AND+(SVMXC__SM_Integration_Source__c+=+null+OR+SVMXC__SM_Integration_Source__c+=+'Local')
4. In the top left corner, click Save and Close (), and then on the Developer Tools () launchpad menu, click Transform Templates.
5. In the list view, click Job Initial Sync Template, and then on the record page, on the Overview tab, in the Custom Field Mappings field, add the following custom field mapping code and save and close the record.
"svmx_dispatch_priority" : "SVMXC__Dispatch_Priority__c"
For more information:
Was this helpful?