Webhooks

Using Zapier to quickly activate webhooks

Webhooks by Zapier

One of Zapier's own apps that is very useful for jestor users it Webhooks by Zapier. You can choose it just as you would any other app.

1916

Basically, you can either use it as a trigger (if you want jestor to send information to a webhook) or as an action (Zapier will send information to a webhook).

This is especially useful when paired with lowcode automations on jestor (for example, when you want triggers more complex than Create a record on jestor) or to activate specific functions by their Function Webhook.

As an example, I could use the following code to send a record's data to Zapier's webhook when this record reaches the "Done" status on jestor:

if($objectNew["status"] == "Done" and $objectNew["status"] != $objectOld["status"]){
	$url = "https://example_zapier_webhook_url";
  $payload = json_encode($objectNew);

	Jestor.curlCall($url,array(
      CURLOPT_HTTPHEADER => array(
          'Content-Type: application/json'
      ),
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS,
      CURLOPT_POSTFIELDS => $payload
   )); 
}

You can experiment and do a lot with webhooks! They empower you to manipulate the data however you see fit.