The short answer
A successful run does not guarantee a usable output. Check three places in order: the value your code returns, the field exposed by the action and the value selected in the next step.
1. Check what your code returns.
Look at the result of a test run. Confirm the value exists, has the expected type, and is returned on the path your input takes.
See an example output shape
Illustrative returned data, not a complete handler. Your execution environment determines how the handler sends this result. The field name and type must match your action’s declared output.
Example output data
{
"outputFields": {
"document_url": "https://example.com/document.pdf"
}
}2. Check the action’s output mapping.
Match the returned field to the output you want to expose. A successful execution and a usable mapped output are two different checks.
3. Check the next action.
Use the output from this action in the next step. Test with the same input so you can compare the code result, mapped value, and downstream result.
If you’re using Turbyn
If the action runs in Turbyn, compare its test result with the output configured in your HubSpot workflow. Use the same record and inputs for each check.
Turbyn setup guide