Last updated: September 27, 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. If a custom code action exceeds these limits, HubSpot will reattempt to execute your action for up to three days, starting one minute after failure. Subsequent failures will be retried at increasing intervals, with a maximum gap of eight hours between tries.
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.
Set workflow enrollment triggers to automatically enroll records in a workflow when they meet specific...
Create a workflow to automate your marketing, sales, and service processes and make your team more efficient....
After creating your workflow and setting your enrollment triggers, choose the actions for your workflow....