Compare hubspot property before and after values in a workflow running currently
SOLVE
Hello Community
We have a requirement to see the previous value when a property was changed. This change sparked a workflow to run as part of the re-enrollment triggers.
We dont want to loop through all the JSON paylod history, but we only want to see what was the value, and what is it now in the current workflow that triggered the event.
Compare hubspot property before and after values in a workflow running currently
SOLVE
Maybe this will change things.....We don't use this in internal comms or anything. We want to at any given time just see what the current deal stage is....and compare it with the previous deal stage. So the pause would only help us if I wanted to email or do something with that field, but its to be able to look at the 2 fields at any given moment and see the difference.
the very first time the WF runs, it would be the same value, but once a deal moved through the stages, the prvious stage roperty will always have the last value
Deal Stage has value A
Previous Deal Stage has value A due to the first time the WF ran and we copied it to Previous Deal Stage
Compare hubspot property before and after values in a workflow running currently
SOLVE
Hi Karsten,
Thanks for reaching out.
I am not sure if this approach would work, but only the first time round.
What will happen when that same property changes again for a second time? your pause of 5 min wont work because the data would already have changed in the original property, meaning you would write the new value to the cloned property and not the old one.
Is the use case to include the previous value in an internal email notification?
If so, this can currently only be achieved with an assisting property and an assisting workflow. Let's assume that the name of your property is 'Property'.
Create a clone of 'Property' and call it 'Property (previous value)'
Create a workflow that re-enrolls records when 'Property is known'
Add a delay of 5 minutes
Copy the property value from 'Property' to 'Property (previous value)'
Use 'Property (previous value)' in your internal notification
Due to the delay, for five minutes the new property will always contain the previous value.
Best regards
Karsten Köhler HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer