Adding a Dispatch Technician Button to Salesforce Work Orders
On Salesforce Work Order pages, you can add a Dispatch Technician button that users can click to open the corresponding Job record in Service Board.
* 
At this time, this functionality is available only in Salesforce Classic.
To add a Dispatch Technician button to Salesforce work orders:
1. On the Salesforce Classic Setup page, in the left pane, click Build > Create > Objects, and then on the Custom Objects page, click Work Order.
2. Under Buttons, Links, and Actions, click New Button or Link, and then on the Custom Button or Link page, complete the fields as follows.
Field
Value
Label
The name you want to use for the button, for example, Dispatch Technician.
Name
Auto-populated based on the value in the Label field.
Description
Brief description, for example, Dispatch Technician on Service Board.
Display Type
Detail Page Button
Behavior
Execute JavaScript
Content Source
OnClick JavaScript
Select Field Type
Work Order
3. In the box, add the following code.
window.open('https://<sb_hostname>/sb/index.html#/scheduler/svmx_job?_providerId=salesforce&id={!SVMXC__Service_Order__c.Work_Order_ID_18_digits__c}','ServiceBoard','resizable=1,status=0,toolbar=0,menubar=0,scrollbars=1');
4. Click Save, and then on the Work Order object page, under Page Layouts, in the Action column, click Edit in the Work Order - Classic row.
5. On the Edit Page Layout page, add the newly created button to the layout and save your changes.
6. In the left pane, click Build > Customize > Home > Custom Links, and then on the Custom Links page, in the Action column, click Edit in the Service Board row.
7. On the Custom Link Edit page, update the JavaScript with the following code.
window.open('https://<sb_hostname>/sb/index.html?_providerId=salesforce','ServiceBoard', 'resizable=1,status=0,toolbar=0,menubar=0,scrollbars=1');
Was this helpful?