Hello,
This issue is for https://github.com/HubSpot/sample-workflow-custom-code/blob/main/samples/format_phone.js
I copied/pasted this code in my custom code action in HubSpot. Changed the secret API key to fit my API key I ran a test and it doesn't work.
I thought it would work without any other changes since you get and update the contact property directly in your code. I assumed that I don't have to create properties or outputs in order to make it work but it doesn't.
Should I create outputs using:
callback({ outputFields: { phone: phoneNumber } });
And then add a "Copy property value" in my workflow?
Thanks for your help.
Hello,
This issue is for https://github.com/HubSpot/sample-workflow-custom-code/blob/main/samples/format_phone.js
I copied/pasted this code in my custom code action in HubSpot. Changed the secret API key to fit my API key I ran a test and it doesn't work.
I thought it would work without any other changes since you get and update the contact property directly in your code. I assumed that I don't have to create properties or outputs in order to make it work but it doesn't.
Should I create outputs using:
callback({ outputFields: { phone: phoneNumber } });And then add a "Copy property value" in my workflow?
Thanks for your help.