Skip to content

Does this code have to work with outputs? #15

@louischausse-auxilio

Description

@louischausse-auxilio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions