Create webhook for task creation in Wrike

Recipe ToolsMarketingProject Management

What it does

When a specified interval triggers, this automation checks Wrike for an existing webhook. It creates the webhook only if one does not already exist, so task creation events route to the correct endpoint.

Who it's for

Engineering teams who need to sync Wrike task creation events without duplicate webhooks.

How teams use this

Ensure the webhook exists on schedule

Run this automation weekly to verify the Wrike webhook for task creation is active. If it was deleted or misconfigured, the automation recreates it so events continue to sync.

Monitor multiple folder groups

Extend this automation to check and create webhooks for other folder groups in Wrike by adding more conditions for each folder ID. The same schedule and logic apply to all.

Alert when webhook creation fails

Add a notification step so someone is alerted if the webhook cannot be created in Wrike. The team knows right away when the sync is at risk.

How it works

  1. Run on a specified interval. This automation runs on a schedule you set, such as daily or weekly, to check the webhook status in Wrike.
  2. Retrieve existing webhooks from Wrike. Fetch all webhooks in Wrike to see which ones are already configured for the folder group production.
  3. Check if the webhook already exists. Loop through the webhooks and compare the hook URL to https://www.workato.com/webhooks/rest/2c03698a-fe66-41b8-8921-f2183d99fe96/taskcreated and the folder ID to IEACZOBBI4P23OM7. Mark the webhook as found if both match.
  4. Create the webhook if missing. When the webhook is not found, create a new one for task creation in the folder group production so events start flowing to the endpoint.