Salesforce

Webhooks for Request Manager

« 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 activities involving Request Manager, you can do so using webhooks. These are customized messages sent from your organization's instance of OfficeSpace each time a specific Request Manager event has been triggered. Webhooks can be configured via the Webhooks panel in Admin, which you can access using the Hamburger menu.

You will only be able to access Admin if your account has the privileges set to do so.

Webhook highlighted in admin

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

Available Request Manager Webhooks
Available Body Field Variables
Sample Webhook
Sample Output to Endpoint
Filtering by Request Type

 

Available Request Manager Webhooks

The following desk booking events have a webhook available for you to use:
 
EventResult
OpenedThe action will trigger when a request has been created or re-opened.
UpdatedThe action will trigger when a request has been updated.
ClosedThe action will trigger when a request has been closed or completed.
 
 

Available Body Field Variables

The following variables can be passed through the webhook, in the body of the request:
 
Variable NameData TypeExplanation
 {{ATTENTION_OF_ID}}IntegerID of OfficeSpace user assigned to the request
{{ATTENTION_OF}}StringName of OfficeSpace user assigned to the request
{{CACHED_LAST_TRANSITION_ID}}IntegerID of the most recent interaction that was taken
{{CREATED_AT}}YYYY-MM-DD UTC Date and TimeCreation time of the request
{{DELETED_AT}}YYYY-MM-DD UTC Date and TimeDeletion time of the request
{{DUE_AT}}YYYY-MM-DD UTC Date and TimeTime and date at which the request is due
{{EMAIL_CHANNEL_ID}}IntegerID for the email channel that the request was delivered to
{{FIRST_ACTION}}StringType of first action taken (e.g. Accepted, Declined, Delegated)
{{FIRST_ACTION_TARGET_TIME}}Integer (number of minutes)Time allocated to start working on the request
{{FLOOR}}StringName of the floor (according to OfficeSpace) that is impacted by the request
{{FLOOR_ID}}IntegerID number of the floor impacted by the request in OfficeSpace
{{HEXDIGEST}}StringInternal identifier that links to the request externally
{{LAST_ACTIVITY}}StringThe last activity performed on the request
{{LAST_DELEGATION_ID}}IntegerID of the delegation action
This ID is stored internally, but using this webhook, you can see the value. 
{{LOCATION}}StringName of the location according to OfficeSpace
{{LOCATION_ID}}IntegerID number of the location impacted by the request, according to OfficeSpace
{{LOCATION_TYPE}}StringLocation type of the location impacted by the requested, according to OfficeSpace (e.g. Desk, Neighborhood)
{{MASTER_REQUEST_ID}}IntegerID number of the master request, when the request is merged with another.
{{ON_HOLD_BY}}StringName of the OfficeSpace user who placed the request on hold.
{{ON_HOLD_BY_ID}}IntegerID Number of the OfficeSpace user who placed the request on hold
{{ON_HOLD_STARTED_AT}}YYYY-MM-DD UTC Date and TimeDate and time that a hold was started
{{REQUESTED_BY}}StringName of the user in OfficeSpace who made the request
{{REQUESTOR}}StringName of the user who made the request, as entered by the user in the request
{{REQUESTOR_EMAIL}}StringEmail address of the user who made the request, as entered by the user in the request
{{REQUESTOR_ID}}IntegerID of the user in OfficeSpace who made the request
{{REQUESTOR_USER_BY_EMAIL}}StringEmail address of the user in OfficeSpace who made the request
{{REQUEST_FEEDBACK_SURVEYS}}TextThis returns the responses to the surveys sent upon completion of a request.
{{REQUEST_ON_HOLD_TIME_PERIODS}}String in format:
{:start=>>"YYYY-MM-DD UTC", :endstart=>"YYYY-MM-DD UTC"}
(per period)
 
Start and end dates for the different periods when the request was put on hold
{{REQUEST_ID}}IntegerID number of the request in OfficeSpace
{{REQUEST_TYPE}}StringType of request, as defined by OfficeSpace
{{REQUEST_TYPE_ID}}IntegerID number of the request type, as defined by OfficeSpace
{{RESOLUTION}}StringType of resolution (e.g. 'Resolved', 'Unresolved')
{{RESOLUTION_TARGET_TIME}}IntegerTime, in minutes, allocated to solve the request according to the SLA
{{SITE}}StringName of the site in OfficeSpace
{{SITE_ID}}IntegerID number of the site in OfficeSpace
{{SOURCE}}StringSource of the request that was entered by OfficeSpace (e.g. visual_directory if Visual Directory was the source)
{{SUBJECT}TextSubject entered as part of the request
{{TIME_TO_FIRST_ACTION}}Integer (number of minutes)Time to the first action taken on the request, from when the request was opened
{{TOTAL_ON_HOLD_TIME}}Float (time in minutes)Total time that a request spent on hold The default value is 0.0, and a null value indicates that the request was not placed on hold.
{{UPDATED_AT}}YYYY-MM-DD UTC Date and TimeDate and time when the request was last updated
 

Sample Webhook

 03 Sample webhook for Request Manager
 

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.

Request Subject: Need new ink in the 3rd Floor Printer
Request ID: 1597
Request Type: Emergency
Request Type ID: 3
Request Created at: 2022-02-18T18:46:51Z
Request Deleted at: 
Request Due at: 2022-02-19T19:00:00Z
Request Source: visual_directory
Requested By: Teegan Torres
Requestor: Teegan Torres
Requestor Email: ttorres@officespacesoftware.com
Requestor ID: 264
Currently Assigned: Korben Dorsey
Currently Assigned ID: 264
Last Transaction ID: 6246
Last Activity at: release
Last Delegation ID: 
Floor Label: Three
Floor ID: 751
Site: Austin
Site ID: 22
Location: Desk3345
Location ID: 144602
Location Type: Seat

 

Filtering by Request Type

When you create or edit a webhook for requests, you can utilize the Request Types dropdown menu to customize which Request Types will trigger a webhook. All Request Types are selected by default.

To individually select or deselect which webhooks will trigger an action, use the checkboxes in the dropdown menu. The counter at the top of the dropdown menu will reflect any change in the number of webhooks selected.

Deselect request types

It should be noted that deselecting a Request Type will mean any newly-created Request Types must be manually added to the webhook. 

To select or deselect all available Request Types, use the Select all request types checkbox.  

Filter webhooks

Remember to save any changes that you make. 

 

Information
Webhooks for Request Manager
Webhooks-for-Request-Manager-HC

Powered by