Change to Deal triggers Workflow, alerts owner and re-enrolls
SOLVE
I have searched everywhere and for the life of me, cannot find a clear solution to this. Here is what I would like to do: (1) Our site updates a custom property in a HubSpot deal. (2) A webhook is triggered and sends an alert to the deal owner, (3) the deal is then re-enrolled so that if the property is updated again, the process repeats. Anyone have thoughts on the best way to go about this? I have set up a custom event that I am triggering through the API, but since it seems deals don't re-nroll, it only fires once. Any suggestions would be greatly appreciate. PS - I am doing all of this in PHP using cURL request to the HubSpot API.
Change to Deal triggers Workflow, alerts owner and re-enrolls
SOLVE
Sorry, in my orignal post step one mentioned webhooks. I meant workflows. As for your answer I tried it in several variations and could not get it to work. I did get a setup that works, but I don't feel like it is the best solution. What I did was (1) create a contact based workflow that listens for a property value change in the contact record. (2) I then have this generate the in-app alert I wanted that appears in the message menu. (3) Then, when the web app I am building gets a request from HubSpot (when a user changes deal stages), I send an enroll request to the Hub API, and I also add timeline event to the contact and deal timelines. Feels a bit cluncky but seems to work.
Change to Deal triggers Workflow, alerts owner and re-enrolls
SOLVE
Sorry, in my orignal post step one mentioned webhooks. I meant workflows. As for your answer I tried it in several variations and could not get it to work. I did get a setup that works, but I don't feel like it is the best solution. What I did was (1) create a contact based workflow that listens for a property value change in the contact record. (2) I then have this generate the in-app alert I wanted that appears in the message menu. (3) Then, when the web app I am building gets a request from HubSpot (when a user changes deal stages), I send an enroll request to the Hub API, and I also add timeline event to the contact and deal timelines. Feels a bit cluncky but seems to work.
I was talking with coworkers the other day about something like this.
Because I don't know all of the details here, at a high level I would suggest enrolling the deal into another workflow (WF2) at the end of the first workflow (WF1). WF2 could essentially check if the value has updated, and re-enroll the deal in WF1.
It would also be possible using a webhook and serverless function.