Date field Invalid Input Value Field Key on Custom Action.

Hello,
I’m using the custom workflow action API to trigger custom events on my analytics and messaging system.
The issue I’m facing is that if I declare it as date and dateTime it returns as invalid input value field key when I select a date time property in Hubspot (in the example it’s the meeting start time from a meeting object).
If I declare it as string, then it outputs only the date (DD/MM/YY) without the time.
Either a unix timestamp or a string with DD/MM/YY HH:MM works for me.
Can someone please help me out?

The field was declared as
“typeDefinition”: {
“name”: “Variable 11”,
“type”: “datetime”,
“fieldType”: “date”,
“options”: [],
“optionsUrl”: null,
“referencedObjectType”: null,
“externalOptions”: false,
“externalOptionsReferenceType”: null
},
“supportedValueTypes”: [
“STATIC_VALUE”

Hi @FFochi,

To fix the “Invalid Input Value Field Key” issue,

1. Declare the field as a string and convert the datetime to a Unix timestamp.

2. Alternatively, format the date as “DD/MM/YY HH:MM” and use it as a string.

These approaches should resolve the error and correctly capture the datetime.

I hope it helps, let me know if you need to talk!

Khushboo Pokhriyal

Growth & Operations

GroRapid Labs

LinkedIn | 9315044754 | Email | Website

Hi @KhushbooP11
Thank you for the answer.
When I declare the variable as

"type": "string","fieldType": "text"

Hubspot automatically sends it as a string containing only “MM/DD/YY”, without the the HH:MM information.

Variable 11 here was declared as dateTime, but set manually in the workflow, while Variable 1 is a string from a datetime property.