Configure a webhook event
- UpdatedJul 31, 2025
- 4 minutes to read
- Zurich
- Workplace Service Delivery Suite
Configure a webhook API event in the Provider configuration table to enable badging vendors to share the badging data collected from badging tables using the webhook event.
Before you begin
Role required: sn_wsd_wc.admin
About this task
The badging data (JSON) is processed using the ServiceNow Rest API explorer. Single or multiple raw badging data records (payload) can be shared and processed using the REST API explorer. The webhook event for badging data is loaded to the Connector Events table in single or multiple JSON records. Multiple records are sent as an array. For more information, see Attendance Analytics.
Procedure
- Navigate to All > Workplace Connectors > Provider Connector Configurations.
-
Select Create New.
On the form, fill in the fields.
Table 1. Provider Connector Configuration form Field Description Name Name for the provider configuration. Source Type Source from where the badging data is collected and loaded into the target Employee attendance table. Select Webhook to configure the webhook event.
Token Param Name The Token Param Name and Token value is a secret key-value pair, which is used to authenticate the API call from the vendor badging system to the Workplace Connectors application. Both systems have the token name value. Using the token name, the application authenticates the API request.
Token value The token value is the secret key used by the badging vendor while calling the API event to let the server authenticate the API request. Active Option to indicate that the provider configuration is Active. Connector Configuration Option to search for and select the lookup list icon (
) to select Badging. For more information, see Configure connectors for badging data.
Callback URL Option to select the callback URL icon (
) to lock or edit the callback URL. - Select Update.
-
Select the newly created webhook event.
The Generate Callback URL button is available to generate a callback URL for the REST API request.
- As a badging vendor, share the badging data in JSON format by navigating to All > System Web Services > REST > Rest API Explorer.
-
In the Rest API Explorer page, select the following:
- Namespace: From the drop-down list, select sn_wsd_wc
- API Name: Workplace Connector Webhook
- API Version: v1
-
On the Workplace Connector Webhook event page, provide the following values:
- token_name: Token param name used in step 2. The token name value is used by badging vendors to share the badging data (JSON) with Workplace Connectors. The raw data (payload or badging data) is processed and loaded into the Connector Events table.
- ni.nolog.id: Copy the System ID of the webhook created in step 2 and paste it. Select the additional actions menu icon (
) from the pane. - token_value: Token value provided in step 2. The token value is the secret key used by the badging vendor while calling the API event to let the server authenticate the API request.
-
In the API Request body, select Raw and copy the badging data (payload) in JSON format.
This badging data is collected from badging sensors.
-
Select Send.
If the Response code is 200 OK and the response result is Success, the badging data is loaded into the Connector Events table.
- The Connector Events table (sn_wsd_wc_connector_events) loads the badging data shared by badging vendors. The State of the badging data is New when it’s loaded by the REST API Explorer.
- The scheduled Job Process webhook provider data records runs every minute to load the badging data from the Connector Events table (data with the State New) to the Employee Attendance Data table.
The scheduled job takes the source data from the Webhook event to transform the data in the required format and then place it in the target Employee Attendance Data table.Note: To access the Workplace Connectors scheduled jobs, navigate to All > System Definition > Scheduled jobs. Search for Workplace connectors in the Application column. Two scheduled jobs are available for Workplace Connectors.- Process provider data records: Reads data from vendor badging data (source table). After processing the badging data, the record loads it into the Employee Attendance Data table (target table). For more information, see Configure badging table data.
- Process webhook provider data records: Reads data from the Connector Events table. Processes the webhook event data and loads it into the Employee Attendance Data table (target table).
- Data is loaded to the Employee Attendance Data table. The state of the badging data in the Connector Events table changes to Processed.
- From the Employee Attendance Data table, the data is loaded into the Attendance Analytics table.Note: Badging data records in the Connector Events table with the state of Processed are purged after two days from the date of creation or the current date by the Connector Events table [sn_wsd_wc_connector_events]. Data in the Error state is purged after seven days from the date of creation. Data in the New state isn’t purged.