Skip to main content
Cartegraph Campus

Webhooks Example: Add Outlook Entry When OMS Task Is Created

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.

This example shows how to connect Cartegraph OMS to Zapier using the Webhook automation block. In this example, we will add an entry to an Outlook calendar when a task is created in Cartegraph for a specified owner named Greg along with a scheduled start and scheduled stop.

  1. Before you create an automation, add these three custom fields to Tasks:
  • Scheduled start: A new DateTime field.
  • Scheduled stop: A new DateTime field.
  • Owner: A Lookup to a Labor record.
  1. These three fields can be added to the Task Setup section of the detail view for Tasks in Layout Manager, to be populated during a Task Create.

WebHEx StructureMgr.png

Now we will create an automation. We will go back and forth between Cartegraph and Zapier.

  1. Click iAdministration_sm.png>Automation Manager.
  2. Click Create Automation.
  3. Select the Send a notification after a task is created trigger.
  4. Fill in the Extend Trigger properties.
    WebHEX NewAutomation.png
  5. Go to https://zapier.com/ and set up a free account or access your existing account.
  6. Click Make a Zap.
  7. In the Choose App & Event field, start to type Webhooks and select Webhooks by Zapier.clipboard_e9d402906f692c1c8c2c04d096595d0dc.png
  8. Select Catch Hook and click Continue.
  9. Click Copy to copy the Custom Webhook URL.
  10. In the Pick off a Child Key, enter cgTasksClass as shown, and click Continue.clipboard_ecd0770b4ba901afa1b9b15a553a006cb.png
  11. Switch back to Cartegraph and drag the Webhook block into the Actions section.
  12. When the Properties panel displays on the right, paste the Zapier URL from your clipboard into the URL field.
  13. Select Trigger Record as the record source and click Test.
    WebHEx TestTriggerRecord.png
  14. In Zapier, click Test trigger.
  1. You should receive a screen that looks similar to this:

clipboard_e581a3fc78b3135850cac8f1f4fed2d29.png

  1. Click Continue.
  2. In the Do this dialog, start to type Outlook and select Microsoft Outlook from the list.

clipboard_e235ab3b5093460b597fa431a8da71bb5.png

  1. Select Create Event and click Continue.

clipboard_ee934bde68b4930d4beebafa0a7c940f6.png

  1. Select the Microsoft Outlook account to use (create one if necessary) and click Continue.
  2. In the Customize Event section, enter the subject and the start and stop dates and time as shown below. Select Cartegraph Fields from Insert Data list.
    clipboard_e5e810e93afb0c0c934ae99d9ded3b936.png
  3. Click Continue.
     
  4. Click Test & Continue.
    clipboard_edf29496b6288dae3c28979fd5f9e3c85.png
  5. After the successful test, click Done Editing.
  6. Name your Zap in the upper left and click Turn Zap On.

Click Go To My Zaps to see a list of all your Zaps.

  1. In Cartegraph, name, save, and turn on the automation.
    WebHEX Finished Automation.png

Whenever you create a Task with an owner of Greg and specify a scheduled start and scheduled stop, an entry will be added to Greg's Outlook calendar.
clipboard_ede320f2f0d33930cd409c56c7f4f233b.png