Subscribe to request for entry updates
Send the result of each Employee Health Screening entry request to a third-party system by configuring a webhook.
Antes de Iniciar
Sending outbound webhook calls requires the following plugins.
- ServiceNow Integration Hub Runtime (com.glide.hub.integration.runtime)
- Workflow Studio Action Step - Payload Builder (com.glide.hub.action_step.payload)
- ServiceNow Integration Hub Action Step - REST (com.glide.hub.action_step.rest)
When you set up the webhook, the system automatically sends a REST request to a
third-party endpoint every time an employee or visitor requests entry. Work with an
administrator for the third-party system to determine the correct endpoint to
provide.
Nota:
The webhook does not include authentication headers in the request.
Ensure that you provide an endpoint that includes query parameters to authenticate the
request.
To learn more about the Employee Health Screening Request Entry module, see Conduct a health screen for entry Screen an employee for return to the workplace.
Role required: sn_imt_core.admin or admin
Procedimento
Resultado
{
"event": "entry.requested",
"email": "aileen.mottern@example.com",
"username": "aileen.mottern",
"user_id": "a8f98bb0eb32010045e1a5115206fe3a",
"location": "San Antonio",
"location_id": "108486c7c611227500b093211aa88dcc",
"access_granted": false,
"updated": "2020-07-01 22:19:03"
}| Property | Description |
|---|---|
| event | Type of event defined in the Webhook table. Data type: String |
| Email address of the employee. Data type: String |
|
| username | Username of the employee from the Health and Safety Users
[sn_imt_core_health_and_safety_user] table. Data type: String |
| user_id | Sys_id of the user record from the Health and Safety Users
[sn_imt_core_health_and_safety_user] table. Data type: String |
| location | Location of the health screening. Data type: String |
| location_id | Sys_id of the location record from the Location
[cmn_location] table. Data type: String |
| access_granted | Flag that indicates whether the employee was granted access
as a result of the health screening. Valid values:
Data type: Boolean |
| updated | Date and time when the employee or visitor requested
entry. Data type: Date/Time |