HubSpot Ideas

ReUpEducation

Allow default values to be set in custom workflow action

We've created a custom workflow action where most of the time the value on a particular field will be the same. We'd like to set that as the default value for the field, but there doesn't seem to be an API parameter for that. It would be great if we could set default values in the typeDefinition for fields when creating custom workflow actions. Something like:

{
      "typeDefinition": {
        "name": "widgetColor",
        "type": "enumeration",
        "fieldType": "select",
        "options": [
          { "value": "red", "description": "red", "label": "Red" },
          { "value": "blue", "description": "blue", "label": "Blue" },
          { "value": "green", "description": "green", "label": "Green" }
        ]
      },
      "defaultValue": "red",
      "supportedValueTypes": ["STATIC_VALUE"],
    }

 

0 Upvotes