# Custom Workflow Actions: POST\_ACTION\_EXECUTION function

**URL:** <https://community.hubspot.com/t/custom-workflow-actions-post-action-execution-function/151429>\
**Category:** Develop, Build & Integrate\
**Tags:** workflow-extension\
**Created:** [June 25, 2026, 9:22pm UTC](https://community.hubspot.com/t/custom-workflow-actions-post-action-execution-function/151429 "2026-06-25T21:22:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MichaelMa](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@MichaelMa](https://community.hubspot.com/u/MichaelMa)\
**Post date:** [June 26, 2026, 12:17pm UTC](https://community.hubspot.com/t/custom-workflow-actions-post-action-execution-function/151429/4 "2026-06-26T12:17:44Z")

</div>

Indeed, there doesn’t look to be much documentation but I did find a Github that used it:

> **[GitHub - ballerina-platform/module-ballerinax-hubspot.automation.actions: This Ballerina connector provides capabilities to...](https://github.com/ballerina-platform/module-ballerinax-hubspot.automation.actions)**
>
> This Ballerina connector provides capabilities to integrate with HubSpot Automation API.

```auto
actions:PublicActionFunction publicActionFunction = {
    functionSource: "exports.main = (event, callback) => {\r\n callback({\r\n outputFields: {\r\n myOutput: \"example output value\"\r\n }\r\n });\r\n}",
    functionType: "POST_ACTION_EXECUTION"
};

```

This post also has an example:

> [@Custom Workflow Action is not able to use outputFields in workflow](https://community.hubspot.com/t/custom-workflow-action-is-not-able-to-use-outputfields-in-workflow/131054/8):
>
> Would you mind sharing your updated block of json? I’m actively building out my first workflow actions like this and the reference would be great!

---

_[View the full topic](https://community.hubspot.com/t/custom-workflow-actions-post-action-execution-function/151429)._
