APIs & Integrations

ZKinion
Member

Receiving more than one object at a time in a workflow action (custom app)

Hello, 

 

I am setting up a custom workflow action, and all seems well so far, except when it hits my callback url, it just has a single CONTACT in there, and not a whole list of them.  This is to ultimately send SMS/MMS to thousands of our customers alerting them to job fairs and such that are coming up.  These are all opt-in users.  How do I receive more than one Contact at a time per request?

I already tried adding to PRE and POST functions, but it won't seem to show up in the Action JSON at all even if I make a whole new action from scratch...

 

Here is my JSON for the create action API that I called:  (appId removed)

 

{
"appId": "123456",
  "actionUrl": "https://95cbe340af22.ngrok.io/hubspot_action",
  "published": true,
  "inputFields": [
  {
    "typeDefinition": {
      "name": "phoneNumber",
      "type": "string",
      "fieldType": "text",
      "referencedObjectType": "OWNER"
    },
    "supportedValueTypes": [
      "STATIC_VALUE"
    ],
    "isRequired": true
  },
    {
    "typeDefinition": {
      "name": "message",
      "type": "string",
      "fieldType": "text",
      "referencedObjectType": "OWNER"
    },
    "supportedValueTypes": [
      "STATIC_VALUE"
    ],
    "isRequired": true
  },
],
  "labels": {
  "en": {
    "inputFieldLabels": {
      "additionalProp1": "test",
        "additionalProp2": "test2",
        "additionalProp3": "test3"
    },
    "inputFieldDescriptions": {
      "additionalProp1": "string",
        "additionalProp2": "string",
        "additionalProp3": "string"
    },
    "actionName": "send_sms_new",
      "actionDescription": "Sends an SMS (not from Sakari)",
      "appDisplayName": "Send Sms (New)",
      "actionCardContent": "send_sms"
  }
},
"objectTypes": [
  "Contact"
],
  "archivedAt": 0
}

 



0 Upvotes
2 Replies 2
dennisedson
HubSpot Product Team
HubSpot Product Team

Receiving more than one object at a time in a workflow action (custom app)

@RMones , @malcolm1 have you all worked with something like this before?

0 Upvotes
sharonlicari
Community Manager
Community Manager

Receiving more than one object at a time in a workflow action (custom app)

Hey @ZKinion 

 

Thank you for sharing this information.  Maybe this article would be helpful, I'll also invite to this conversation a few contributors that might be able to share their thoughts. 

 

Hey @tjoyce @Hanta any tips you can share with @ZKinion?

 

Thanks

Sharon 


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !