HubSpot · Schema

ActionFunction

A serverless function associated with an action

AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

Properties

Name Type Description
id string The unique identifier of the function
functionType string The type of function
functionSource string The JavaScript source code of the function
View JSON Schema on GitHub

JSON Schema

hubspot-custom-workflow-actions-action-function-schema.json Raw ↑
{
  "type": "object",
  "description": "A serverless function associated with an action",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the function",
      "example": "500123"
    },
    "functionType": {
      "type": "string",
      "description": "The type of function",
      "example": "PRE_ACTION_EXECUTION",
      "enum": [
        "PRE_ACTION_EXECUTION",
        "PRE_FETCH_OPTIONS",
        "POST_FETCH_OPTIONS",
        "POST_ACTION_EXECUTION"
      ]
    },
    "functionSource": {
      "type": "string",
      "description": "The JavaScript source code of the function",
      "example": "example-value"
    }
  },
  "required": [
    "id",
    "functionType",
    "functionSource"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ActionFunction"
}