Migrate date stage calculated properties to new pipeline

We are consolidating our Deal pipelines into one global. For this we would also want to migrate the time stamp of date stage calculated properties. We know its not possible to do it via import or crm bulk update. Is there a way to do it through an API call or will the same issues occur?

Any advice is appreciated!

Best regards,

Alejandro

Hi @galvanA81,

Thanks for bringing this to the Community! :raising_hands:

I can’t find anything in our API docs on this, but I don’t think you’ll be able to edit the timestamp on a HubSpot-owned field.

That said, I’m tagging in a few few folks from the community to see if they have any workarounds for this!

Hey @MichaelMa, @grajput, @Anton – have you ever found a way to deal with this time stamp roadblock?

Thank you!!

Sam, Community Manager

Sam (@stassey) is right that these values are read-only: HubSpot calculates them from the stage history, and as far as I know the API won’t let you write them either. In pipeline merges I’d keep the history in your own properties before a single deal moves. Create custom date properties like “Legacy date entered Qualified” for the stages your reports actually use, fill them with a deal workflow that copies the value from the old Date entered property, and only then move the deals.

One trap: stage calculated properties are switched off by default for new pipelines and stages, so turn them on under Settings > Data Management > Objects > Deals > Pipelines before the first deal arrives. I’d also keep the old pipelines until your reports run on the new properties. Which reports depend on these timestamps today, sales cycle length or time in stage?

Written by me, re-written by AI.

Tried doing the API through a custom code action and unfortunately it is Read Only Values.

We will roll with the “Legacy calculated properties” and eventually stop using them.

Appreciate your input!

Hi Alejandro, those date entered/exited stage fields are HubSpot-owned, so the API will reject writes just like import does.

What has worked for us: before moving deals, create custom date properties (e.g. “Legacy - Entered Qualified”), copy the old values into them with a workflow using Edit record > Copy property value, then move the deals.
Rebuild your stage reports on the custom fields for historical deals and the native ones going forward. Keep the old pipeline archived until reports check out.

I don’t believe it’s possible for the any method external to modify the date stage properties. Those are protected by HubSpot as readonly property.

What do you need to save and how would you need to access it? Perhaps a new field(s) and you can store the previous data as a single text (eg, JSON format) or in individual fields for what you had previously. As the new fields would be custom properties, you can copy over the unixtimestamp from the old stages.