# Create workflow actions for app

**URL:** <https://community.hubspot.com/t/create-workflow-actions-for-app/105287>\
**Category:** APIs & Integrations\
**Tags:** workflows\
**Created:** [April 19, 2024, 1:37pm UTC](https://community.hubspot.com/t/create-workflow-actions-for-app/105287 "2024-04-19T13:37:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![neer](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@neer](https://community.hubspot.com/u/neer)\
**Post date:** [April 19, 2024, 1:37pm UTC](https://community.hubspot.com/t/create-workflow-actions-for-app/105287/1 "2024-04-19T13:37:19Z")

</div>

I want to create a custom action for my application on hubspot marketplace.  
So that whenever a user installs my application, that action should be shown in their panel.

Example : If you install todoist application in your hubspot account you get an option to `Create a task in todoist` based on the trigger set.

 ![neer_0-1713533807664.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/c/2c5b1adecc45cde3fa0de345b39650bc1dc77051.png)

How can I do this for my application?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [April 19, 2024, 3:56pm UTC](https://community.hubspot.com/t/create-workflow-actions-for-app/105287/2 "2024-04-19T15:56:54Z")

</div>

Hi, @neer 👋 Welcome to our community! Here’s a link to the documentation — [Custom Workflow Actions](https://developers.hubspot.com/docs/api/automation/custom-workflow-actions).

Have fun building! — Jaycee

---

<div class="post-metadata">

**Author:** ![neer](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@neer](https://community.hubspot.com/u/neer)\
**Post date:** [April 19, 2024, 4:15pm UTC](https://community.hubspot.com/t/create-workflow-actions-for-app/105287/3 "2024-04-19T16:15:43Z")

</div>

I went through this document and made a POST request to the URL mentioned below. It returned a `201 created` response but I can’t find this newly created action while creating workflow in hubspot.

URL : [https://api.hubspot.com/automation/v4/actions/{appId}?hapikey={developer\_API\_key](https://api.hubspot.com/automation/v4/actions/%7BappId%7D?hapikey=%7Bdeveloper_API_key)}

```lia-code-sample
{
 "actionUrl": "https://example.com/hubspot",
 "inputFields": [
 {
 "typeDefinition": {
 "name": "widgetName",
 "type": "string",
 "fieldType": "text"
 },
 "supportedValueTypes": ["STATIC_VALUE"],
 "isRequired": true
 },
 {
 "typeDefinition": {
 "name": "widgetColor",
 "type": "enumeration",
 "fieldType": "select",
 "options": [
 { "value": "red", "label": "Red" },
 { "value": "blue", "label": "Blue" },
 { "value": "green", "label": "Green" }
 ]
 },
 "supportedValueTypes": ["STATIC_VALUE"]
 },
 {
 "typeDefinition": {
 "name": "widgetOwner",
 "type": "enumeration",
 "referencedObjectType": "OWNER"
 },
 "supportedValueTypes": ["STATIC_VALUE"]
 },
 {
 "typeDefinition": {
 "name": "widgetQuantity",
 "type": "number"
 },
 "supportedValueTypes": ["OBJECT_PROPERTY"]
 }
 ],
 "labels": {
 "en": {
 "actionName": "Create Widget - Example 1",
 "actionDescription": "This action will create a new widget in our system. So cool!",
 "actionCardContent": "Create widget {{widgetName}}",
 "inputFieldLabels": {
 "widgetName": "Widget Name",
 "widgetColor": "Widget Color",
 "widgetOwner": "Widget Owner",
 "widgetQuantity": "Widget Quantity"
 },
 "inputFieldDescriptions": {
 "widgetName": "Enter the full widget name. I support <a href=\"https://hubspot.com\">links</a> too.",
 "widgetColor": "This is the color that will be used to paint the widget."
 }
 }
 },
 "objectTypes": ["CONTACT", "DEAL"]
}

```

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [April 20, 2024, 1:52am UTC](https://community.hubspot.com/t/create-workflow-actions-for-app/105287/4 "2024-04-20T01:52:02Z")

</div>

Hi @neer 👋

In my experience working with these custom workflow action endpoints, it can take some time (often 5+ minutes) to see the updates you’re making via API be reflected in HubSpot’s UI. Unfortunately, patience is key with these endpoints -- I recommend making a cup of tea in between calls 😆

I hope this proves helpful. Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![neer](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@neer](https://community.hubspot.com/u/neer)\
**Post date:** [April 22, 2024, 3:56am UTC](https://community.hubspot.com/t/create-workflow-actions-for-app/105287/5 "2024-04-22T03:56:40Z")

</div>

[@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811)  
Thanks for the reply. Its been 2 days since I created my custom workflow action but its not yet visible in my workflow creation panel.  
My app is not published. I am trying this out with a test account and developer account app.

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [April 22, 2024, 4:44am UTC](https://community.hubspot.com/t/create-workflow-actions-for-app/105287/6 "2024-04-22T04:44:42Z")

</div>

Hi @neer 👋

I recommend updating your workflow action as “published”. For example:

**PATCH** /automation/v4/actions/:APP\_ID/:WORKFLOW\_ACTION\_ID?hapikey={{DEVELOPER\_API\_KEY}}

**Request body**

`{ "actionUrl": "https://my.service/abc", "published": true, "objectTypes": ["CONTACT", "TICKET"], "objectRequestOptions": { ... }, "inputFields": [...], "outputFields": [...], "labels": { ... } } `

Despite [HubSpot documentation](https://developers.hubspot.com/docs/api/automation/custom-workflow-actions) suggesting that _“unpublished custom actions are only visible in the developer portal associated with the corresponding HubSpot application”_, I’ve had no luck in the past testing with “unpublished” workflow actions either in my Developer Portal or its associated Test Accounts. As far as I’m aware, there’s no “workflows” feature available in HubSpot Developer portals, so the documentation is a little misleading. I’ve been meaning to reach out to someone at HubSpot about this for a while, so it’d be great to get some feedback from [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)

---

<div class="post-metadata">

**Author:** ![neer](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@neer](https://community.hubspot.com/u/neer)\
**Post date:** [April 23, 2024, 4:35am UTC](https://community.hubspot.com/t/create-workflow-actions-for-app/105287/7 "2024-04-23T04:35:26Z")

</div>

Thanks Zach, You save my day. It worked.
