We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jan 26, 2021 11:43 AM
We have a custom workflow action definition that includes a field called "Message name" which we allow the user to set so we can generate reports in our software. Typically this works just fine, but some users have used contact tokens inside the field, causing unique message names to come through to our system, generating reports for each unique message name.
Is there any option to disable contact tokens so they must enter a static value? Or if there is no option, is it possible to get an action identifier passed along? Currently, we receive `workflowId` but our user could have the same action type in the same workflow multiple times.
We appreciate the help!
Jan 27, 2021 4:33 AM
Hi @yeti_t,
Have you tried making it "supportedValueTypes": ["STATIC_VALUE"] ?
"inputFields": [
{
"typeDefinition": {
"name": "widgetName",
"type": "string",
"fieldType": "text"
},
"supportedValueTypes": ["STATIC_VALUE"],
"isRequired": true
},
I hope this will solve your problem!
Best Regards,
@himanshurauthan
Jan 27, 2021 12:24 PM
@himanshurauthan
This is the current definition we have:
{
"typeDefinition": {
"name": "messageName",
"type": "string",
"fieldType": "text",
"options": [],
"optionsUrl": null,
"referencedObjectType": null
},
"supportedValueTypes": [
"STATIC_VALUE"
],
"isRequired": true
}