How to call a Webhook URL as a Trigger in the Orders App?

Updated on March 30, 2020 10:42PM by Admin

Altering information in Apptivo without logging into it is made possible with Webhook. Webhook is a platform that connects two applications. By modifying the events in one application, you can create an action in another. Apptivo allows you to call a Webhook URL during Event Based and Time Based triggers.

Consider configuring a trigger where the action is to call a Webhook URL in the Orders App.

Step 1: Configuration in Settings

  • Go to Settings → Orders → Triggers → Event-Based. Select Create to create a new trigger.
Settings
  • In the Create Trigger page, add a name for the Trigger. Here, it is set as Trigger by Status. The trigger is enabled by default.
  • Also, determine the event during which a trigger is to be generated. Here, an action has to occur when the Order is Updated.
Basic Information
  • The criteria are set to perform an action when the Order Status is Under Review.
Criteria
  • Once the basic information criteria are added, add the Action as Call a Webhook URL.
Actions
  • In the Call a Webhook URL Side panel, add the necessary information on the application where the action has to occur.
Call a Webhook

Post URL: Post URL refers to the URL of the application where the action has to occur. It is the API obtained from that application. For Instance, your website application.

Object JSON: In Object JSON, you can add the name for the key/value pair.

Additional Params: Along with the params that are available in Apptivo, you can also add additional params (Attributes) along with its value that has to be displayed.

  • Once the configuration is complete, select Create to create a new Trigger. The trigger is added to the Event Based triggers page.
Create Trigger

Step 2: Trigger Generation

  • Consider updating an existing Order in the Orders App whose Status is Under Review.
Update Order
  • This is the condition mentioned in the Trigger. Once the order is updated, a trigger will be generated to the URL mentioned in the Post URL.
Webhook Called