Create a new Deal via Workflow when a Webhook is received

I want to create a new Deal in HubSpot when an order is created in WooCommerce for WordPress using webhooks in Workflows.

I have successfully configured the webhook and I received the test payload in HubSpot.

My issue is that in the HubSpot workflow configuration, I need to match a property from the WooCommerce payload with a Deal ID. However, as I want to create a new Deal in HubSpot, there is no property to match.

Any suggestions on how I can get around this?

You can always cheat by using a placeholder Deal. This deal is mostly to let you trigger the workflow.

1. Create a Deal in hubspot and let’s call it WooCommerce Integration Deal. Get the ID of this deal.

2. Your WooCommerce webhook would always send the Deal ID from 1 as the ID.

3. You can also pass in the WooCommerce Order ID and store it into a custom field (let’s say Reference Number).

4. Use the Create Record action or use Custom Code to create your new deal.

The solution makes sense, but I hope HubSpot has a better solution. I suppose it would make more sense to have a contact called something like WooCommerceSync and a unique property that will always match up with a property from WebHook. Thanks for the idea. I’ll give it a go.