APIs & Integrations

KPadhiyar
Participant

How to add options of HubSpot property into workflow custom action?

I've created one integrate app in workflow configuring section and while creating this app I've created one input field which type is
select. Now I want to set options from HubSpot property for this field. I can't find out any solution for set dynamic values. Can anyone help me to find solution.

0 Upvotes
3 Replies 3
KhushbooRevOps
Member

How to add options of HubSpot property into workflow custom action?

Hi @KPadhiyar,

To dynamically add HubSpot property options to a select field in a workflow custom action, 

1. Use the HubSpot API to retrieve the property options:
GET /crm/v3/properties/{objectType}/{propertyName}

2. Use the retrieved options to fill the select field dynamically in your custom action.


This ensures your select field always has the latest property options from HubSpot.

 

I hope it helps, let me know if you need to talk!

Khushboo Pokhriyal

Growth & Operations

GroRapid Labs

LinkedIn | 9315044754 | Email | Website

0 Upvotes
KPadhiyar
Participant

How to add options of HubSpot property into workflow custom action?

@KhushbooRevOps Thanks for the reply. Should I write JS code in API request for create workflow action or? Can you suggest me some basic code like example. Thanks...

0 Upvotes
KPadhiyar
Participant

How to add options of HubSpot property into workflow custom action?

@KhushbooRevOps  FYI: I've below code for making action and I've make this as per example in documentation:

 

{
    "actionUrl": "url",
    "objectTypes": [
        "CONTACT",
        "COMPANY",
        "DEAL",
        "TICKET"
    ],
    "published": true,
    "inputFields": [
        {
            "typeDefinition": {
                "name": "field_name",
                "type": "enumeration",
                "fieldType": "select"
            },
            "supportedValueTypes": [
                "STATIC_VALUE"
            ]
        }
    ],
    "outputFields": [
        {
            "typeDefinition": {
                "name": "id",
                "type": "string",
                "fieldType": "text"
            },
            "supportedValueTypes": [
                "STATIC_VALUE"
            ]
        }
    ],
    "labels": {
        "en": {
            "inputFieldLabels": {
                "field_name": "field_name",
                "staticInput": "Static Input",
                "objectInput": "Object Property Input",
                "optionsInput": "External Options Input"
            },
            "outputFieldLabels": {
                "id": "ID",
                "staticInput": "Static Input",
                "objectInput": "Object Property Input",
                "optionsInput": "External Options Input"
            },
            "actionName": "My Extension",
            "actionDescription": "My Extension Description",
            "appDisplayName": "My App Display Name",
            "actionCardContent": "My Action Card Content"
        }
    }
}

 

 Where Should I put code for options?

0 Upvotes