In this tutorial, learn how to set a Priority webhook to streamline your processes and ensure seamless integration with your existing systems.
Prerequisites #
Before you begin, ensure the following:
- Connection between Engini and Priority.
Learn how to connect Priority to Engini. - Webhook module of Priority.
Add Priority Trigger #
To get started, add a trigger:
- Add a new activity and choose trigger of priority.
For example: “Customer Order Updated” - Click on the “Copy” Icon to copy the Url.
- Notice that the following message is received after copying: Successfully copied URL to clipboard.
Set the webhook in Priority #
- Enter the Priority
- Follow the next path:
- System Management – מנהל המערכת
- System Maintenance – תחזוקת מערכת
- Periodic Maintenance – תחזוקה שוטפת
- BPM Maintenance – תחזוקת ניהול תהליכים
- Webhook Defamations – הגדרות Webhooks
- Click on the “New” button to add new webhook
- Populate the fields
- Name/שם: enter the name of the Webhook
- URL: enter the Url you copied from Engini trigger
- After populating the fields click on the arrow at the right top side of the screen to save the webhook and exit.
Define a Business Rule #
- Enter the screen from which you want the trigger to be sent.
For example, to “Customer orders” screen. - Click on the Automations “אוטמציות” button.
- Click on the Business rules “חוקים עסקיים” button.
- Define the Business rule:
- Description of the rule: Give a meaningful description of the rule.
- We recommend writing the description in English.
- Click on the dropdown and click on the “Webhook” option.
- Click on the added dropdown and select the name of the webhook you set in the previous level.
- Subject: Enter the subject of the rule.
- We recommend writing the subject in English
- Message: Click on the “הוסף שדה להודעה/add field to the message” button and select the fields that will be sent in the webhook to Engini.
- Our recommendation is to send the unique identifier of the form record. For example, the order number in the case of an order or the customer’s number in the case of a customer. Then use the get activity to pull all the information about the order or the customer that was received in the webhook.
- Condition: Define what is the condition for sending the webhook.
- Choose whether what will trigger the webhook is the current or previous value in the selected field.
- Choose the field
- Choose the condition
- Click on the “Plus” button to add another condition and repieat steps 1-4.
- Pay attention! If you don’t define a condition, it will be sent every time a change is made in the form a webhook.
- Choose whether the ‘call ‘ webhook should be triggered when all conditions are met (And) or only when one of the conditions is met (Or)
- Choose who the rule applies to.
- Click the OK “אישור” button to save the business rule.
- Description of the rule: Give a meaningful description of the rule.