@MTarnopolska - I have been tangling with this challenge myself over the last few day, although I was actually after the related tracking properties “time in stage xxx”.
HubSpot seems to create a ‘time entered XXX’ , ‘time exited XXX’, and ‘time in XXX’ properties for each stage added to a deal pipeline. You can see these properties if you use the API to capture the scheme of the Deal object. Example:
{
“updatedAt”: “2023-07-07T19:30:59.543Z”,
“createdAt”: “2021-11-18T20:05:10.571Z”,
“name”: “hs_time_in_8070174”,
“label”: “Time in ‘XXX (YYY Pipeline)’”,
“type”: “number”,
“fieldType”: “calculation_read_time”,
“description”: “The total time in seconds spent by the deal in the ‘XXX’ stage, ‘YYY’ pipeline”,
“groupName”: “deal_activity”,
“options”: [],
“displayOrder”: -1,
“calculated”: false,
“externalOptions”: false,
“archived”: false,
“hasUniqueValue”: false,
“hidden”: true,
“hubspotDefined”: true,
“modificationMetadata”: {
“archivable”: true,
“readOnlyDefinition”: true,
“readOnlyValue”: true
},
“formField”: false
},
As you note, reading these properties is more problematic, since they are inconsistently available or not available in th various tools. I suspect that they are defined in a non standard way that hinders more general use.
I found two ways to get around the restrictions, although they both involve creating duplicate properties:
- Use the API and custom code steps in workflows to copy the values and apply any associated calculation/processing steps (conversion to days for example). The copy of the value can be stored in a new Deal property and used as normal.
- Use a current Beta feature called ‘Calculated Properties: Advanced Formula Builder’ which (despite the rough edges) enables a calculated property to be created that is derived from one or more of these properties (with accociated conversion into a useful number base). Sounds like this may be your best option and claims to be availabe in Marketing Pro etc.
Hope this is helpful.