Salesforce

Webhooks for Moves

« Go Back
Fields

Please note that your subscription plan determines the specific set of features available to you, which may result in differences between what you see and the images presented in this article. For further details on the features included in your plan, please contact your OfficeSpace Admin.
 

If you're looking to tie a particular action to a move event, you can do so using webhooks. These customized messages are sent from your organization's instance of OfficeSpace each time a specific move event has been triggered. Webhooks can be configured via the Webhooks panel in Admin, which you can access using the Hamburger menu.

Webhooks Navigation

For more information on using Webhooks, see Introduction to Webhooks.

Available Moves Webhooks
Available Body Field Variables
Sample Webhook
Sample Output to Endpoint

 

Available Moves Webhooks

The following moves-related events have a webhook available for you to use:
 
EventOutcome
CreatedThis action will trigger when a move has been created. 
UpdatedThis action will trigger when an already-created move has been updated.
CanceledThis action will trigger when a move has been canceled.
CompletedThis action will trigger when a move has been completed.
Request CreatedThis action will trigger when a move request has been created.
Request CanceledThis action will trigger when a move request has been canceled.
 
 

Available Body Field Variables

The following variables can be passed through the webhook, in the body of the request:
 
Variable NameData TypeExplanation
{{ASSETS}}StringThe assets that will be transferred as part of the move
{{COMMENTS}}StringThe contents of the Comments field on the move in Move Manager
{{CREATED_BY}}StringThe name of the user who created the move
{{DEPARTMENT}}StringThe department the user being moved belongs to
{{EMAIL}}StringThe email address of the user being moved
{{EMPLOYEE_ID}}IntegerThe employee ID of the user being moved
{{FIRST_NAME}}StringThe first name of the user being moved
{{FROM_FLOOR}}StringThe current floor of the user being moved
{{FROM_LOCATION}}StringThe site from which the user will be moved
{{FROM_LOCATION_ID}}IntegerThe location ID of the site from which the user will be moved
{{LAST_NAME}}StringThe last name of the user being moved
{{MOVE_DATE}}MM-DD-YYYY DateThe date scheduled for the move
{{MOVE_ID}}IntegerThe move ID (in Moves) for the scheduled move
{{MOVE_TIME}}HH:MM:SS TimeThe time scheduled for the move 
{{NAME}}StringThe full name of the requestor
{{REQUEST_COMMENT}}StringThe requestor’s comment on the request for the move
{{REQUESTED_BY}}StringThe requestor of the move
{{TITLE}}StringThe title of the user (their role or position)
{{WORK_PHONE}}IntegerThe phone number associated with the user
{{EXTENSION}}IntegerThe phone extension associated with the user
{{TO_FLOOR}}StringThe floor that the user will be moving to, inside the location
{{TO_LOCATION}}StringThe location (site) that the user will be moving to
Can be the same as the from location if the user is moving from one place to another within a location
{{TO_LOCATION_ID}}IntegerThe location ID of the site that the user will be moving to
{{UDF0 - 34}}Strings - could be text or numbers, depending on configurationFields customizable by your organization
Response would supply the information contained in the selected custom field for the user who triggered the event
{{FORM_EXTENSION_MOVE_COST}}Values specifically related to the particular formerThe cost of the move, as entered into the defined move
{{FORM_EXTENSION_MOVE_PRIORITY}}Values specifically related to the particular formThe selected priority of the defined move
{{FORM_EXTENSION_ORIENTATION_TOUR}}Values specifically related to the particular formIndicates whether an orientation tour is requested as part of the move
{{FORM_EXTENSION_SPECIAL_REQUESTS}}Values specifically related to the particular formAny special request notes entered into the defined move


 

Sample Webhook

Sample Webhook


 

Sample Output to Endpoint

Below is a sample output based on the above request. As OfficeSpace allows customization of webhook formatting, including customization of formatting and contents, the output of your request may look different.

{
"event": "Move Request Created",
“created_by”: “Teegan Torres”,
“employeeid”: “ID000292”,
“first_name”: “Frankie”,
“last_name”: “Jacobs”,
“department”: “Human Resources”,
“email”: “fjacobs@officespacesoftware.com”,
“title”: “HR Manager”,
“work_phone”: “555-555-5555”,
“extension”: “4332”,

“from_floor”: “Chicago 5”,
“from_location”: “Chicago Office”,
“from_locationid”: “128761”,
“to_floor”: “Sunset 1”, 
“to_location”: “Perth”,
“to_locationid”: “129061”,

“move_id”: “7594”,
“move_date”: “July 13, 2022”,
“move_time”: “9:00 AM”,

“dietary_preference”: “Paleo”, 
“citizenship”: “United States of America”,

“move_cost”: “$5000”,
“Move_priority”: “Expedited ( < 24 hours response time)”,
“orientation_required”: “Yes”,
“special_requests”: “Please add a bottle of water, thanks!”

}
 
Information
Webhooks for Moves
Webhooks-for-Moves-HC

Powered by