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

Updated on March 12, 2020 05:31AM by Admin

Webhook is a method used to connect two applications. By making use of the webhook, you can alter any information available. By modifying the events in one application, you can generate an action in another application. Apptivo allows you to call a Webhook URL during Event Based and Time Based triggers.

For Instance: Let us consider the criteria to perform an action when the Project Status is “On Hold” in Event Based triggers.

Step 1: Configuration in Settings

  • Go to Settings → Projects → 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.
  • Here, the trigger is to be generated when a Project is created. Hence, the event is chosen as Projects Created.
Create Trigger

  • The criteria are set to perform an action when the Project Status is "On Hold".
  • Once the basic information criteria are added, add the Action as Call a Webhook URL.
Actions

  • You will be redirected to Call a Webhook URL Side panel. Here, you can add the necessary information on the application where the action has to occur.
Call a Webhook URL

Post URL: Post URL refers to the URL of the application where the action has to be performed. It is basically the API obtained from that application. For Example, 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. It will add the created Webhook as an action.
Webhook
  • Now, select Create to create a new Trigger. The trigger is added to the Event Based triggers page.
Trigger Created

Step 2: Trigger Generation

Consider creating a Project in the Projects App with the criteria mentioned in the Trigger.

Create a Project

You can see the Project is created with the status as "On Hold". This is the condition mentioned in the Trigger. Once the project is created, a trigger will be generated to the URL mentioned in the Post URL.

Webhook Called