I’m having an issue with the Custom Workflow Actions API. I’ve read the documentation front to back like 10 times but its lacking on explaining different InputField and InputFieldDependcy possibility which we’re trying to get working for our app use case.
We’re trying to extend the criteria in the contact based actions to target associated objects. It looks very similar to how HubSpot has its “Set property Value” action but a little more in depth. So what I’m trying to do it when the user selects the associated object they want to target I then load that objects properties and after they select the property I’d like to load the corresponding fieldType for them to select the new value but the issue is I’m not sure if I can then hide other inputFields (corresponding to other fieldTypes), they are just grayed out (which makes for a whole mess of inputFields).
I see HubSpot has some sort of logic built in into the workflows where inputFields are hidden until the dependant inputFields are build but in the custom workflow actions API it just grays them out and there is nothing in the documentation about this.A possible solution would either be to enable dynamic inputFields such as this
{
"typeDefinition": {
"name": "newValue",
"type": {{ dynamicType }}
"fieldType": {{ dynamicFieldType }}
"options": [],
"optionsUrl": null,
"referencedObjectType": null,
"externalOptions": false,
"externalOptionsReferenceType": null
},
"supportedValueTypes": [
"STATIC_VALUE"
],
"isRequired": true,
"automationFieldType": null
}
Or for me to be able to place all different fieldTypes into seperate inputFields but be able to hide them (not just gray them out=
Also there is next to no documentation available for “inputFieldDependencies” for some reason.
The final question would be if there is a way to hide not only gray out inputFields or if anyone has tried if making dynamic fieldTypes is possible?