Skip to main content
Cartegraph Campus

Webhook Example: Send a Tweet When a Pothole Request Closes

 

This feature may not be available in every package. Not sure if you have this feature or you want to learn more about it? Send us a message at support@cartegraph.com.

The following is a step by step walkthrough connecting Cartegraph OMS to Zapier using the Webhook automation block.  In this example, we will send a tweet every time a pothole request is closed in Cartegraph. 

  1. In Cartegraph, begin to create an automation.  We are refining the trigger so the automation is only triggered when a request status switches from open to closed and the issue is Pothole.

Step1.png

  1. Go to https://zapier.com/  and set up a free account or access your existing account.
  2. Click Make a Zap.
  3. In the When this happens dialog, start to type webhooks, and select Webhooks by Zapier.

clipboard_efe3e55f7b9c8b14435e53c627100aac7.png

  1. Select the Catch Hook option and click Continue.

clipboard_edd674990c61871cbc55dcc6a19ef687b.png

  1. In the Pick Off A Child Key field, enter cgRequestsClass.
  2. Click Copy to copy the Custom Webhook URL and click Continue.

clipboard_ee80c7a04930270ad6fbeb71e84355503.png

  1. Switch back to Cartegraph and drag the WebHook block and drop it in the Actions section. 
  2. When the property panel displays on the right, paste the URL you copied from Zapier.
  3. Select Trigger Record as the Record Source and click Test.

Step7.png

  1. Switch back to Zapier, click Test trigger.
  2. If the test is successful, you will see We found a request! in the Find Data section. Click Continue.
  3. In the Do this dialog, start to type twitter and select Twitter from the list.

clipboard_e1fc91394d11345769b47eae13dc41de9.png

  1. Click the Create Tweet option, then click Continue.

clipboard_eb00ad2b402a22fa39473b1e1d428ecf4.png

  1. Select the Twitter account to use (create one if necessary) and click Continue.
  2. Enter the message text for the tweet as shown below. When you get to a part of the message that uses values sent from Cartegraph, select the field from the Insert Data list.

clipboard_ef5bde95328169ec1f7754ebacb71543d.png

  1. When you finish, click Continue.
  2. Click Test & Continue to send a sample tweet to Twitter.
  3. After the test is successful, click Done Editing.
  4. Name your zap in the upper left and click Turn Zap On
  5. In Cartegraph, name, save, and turn on the automation.

Whenever you close a pothole request in Cartegraph, a tweet like this is sent:

Step21.png