Create Webhook Subscription
Create Webhook Subscription Dialog
Open the Webhooks module in the Alerts section.
Click Create Webhook Subscription
in the top right corner.
Fill in the required fields (marked with *) for each step in the dialogue.
Click Create.
Types of Webhook Subscriptions
There can be created 3 types of webhooks in VMS; HTTP, Email and Websocket. HTTP and Email send notifications to the specified destination, while Websocket sends push notifications to users through VMS. Each with different options to fill out. Illustrations and further descriptions are shown below for which fields need to be filled to create a new Webhook Subscription.
Receiver Step


Trigger Step
The Trigger is the condition that needs to be met for a notification to be sent to the Receiver. Either an existing Alert Script or an Expression can be selected. Below is an example Expression that needs the cargoQuantity of a Cargo to be changed, greater or equal to 1000, and that cargo's charterer to be equal to a specific user key. Limiting the number of notifications to be relevant and informative.

Payload Step
Template Message and Fields are optional. Template Message allows for a custom message where field values from the object can be inserted in the sent notification.

General
All options are optional except User, which must be selected. This should in most cases be set to the user intended to receive the notification. As the permissions of that User decides the access to objects when the notification is sent. Failing notifications could be due to the User not having the right access. The description icon (i) can be hovered over to reveal additional information about their function.

Last updated
Was this helpful?