Last updated: September 22, 2021
|Operations Hub Professional|
For more technical information about building custom code actions, view HubSpot's developer documentation.
Please note: custom code actions must finish running within 20 seconds, and can only use up to 128 MB of memory. Breaking these limits will result in an error.
To add a custom code action to your workflow:
When adding a custom code action to a workflow, you can test the action to ensure that your code runs as expected before turning the workflow on.
When testing a custom code action, you'll start by selecting a record to test the code with, then run the code. This test will run only the code in your custom action, not any of the other actions in the workflow. When the code is finished running, you'll be able to view the code outputs and the log of your test.
To test a custom code action:
Please note: when testing your custom code, the code will run and any changes will apply to the selected test record. It's recommended to create a dedicated test record if you want to avoid updating your live records.
After creating your workflow and setting your enrollment triggers, choose the actions for your workflow....
Set workflow enrollment triggers to automatically enroll records in a workflow when they meet specific...
By default, records are only enrolled in workflows the first time they meet the workflow enrollment triggers...