<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Workflow action not showing outputs in Data Hub</title>
    <link>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/608115#M788</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/182920"&gt;@PFriederich&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I think the way you're setting the output is fine but 2 things :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp;Are you properly returning the output fields at the end of your script ?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_0-1649168458643.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/63212iAFF9A146CB1AB47E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LMeert_0-1649168458643.png" alt="LMeert_0-1649168458643.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Have you filled the data output section of the custom code node ?&lt;BR /&gt;You will need to do both in order to use them later on in your workflow.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_1-1649168502592.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/63213i130AED46CDAE27CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LMeert_1-1649168502592.png" alt="LMeert_1-1649168502592.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Here's the result of the example above :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_2-1649168582520.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/63214i5F7945EC43857DDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LMeert_2-1649168582520.png" alt="LMeert_2-1649168582520.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps ! If it does, please consider marking this as a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Have a good day,&lt;/P&gt;
&lt;P&gt;Ludwig&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 14:23:27 GMT</pubDate>
    <dc:creator>LMeert</dc:creator>
    <dc:date>2022-04-05T14:23:27Z</dc:date>
    <item>
      <title>Custom Workflow action not showing outputs</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/597025#M755</link>
      <description>&lt;P&gt;I'm working on a custom workflow action which returns a result based on two input properties in a workflow. I've set up the inputs and outputs according to the docs, and the automation API accepts the definition without any complaints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The workflow action also appears in my workflow builder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the outputs from my custom action aren't available for following workflow steps, no matter how I define them (different types, different options etc.).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relevant part of my action definition is as follows (i tried multiple ways to define them because I suspected maybe the type / fieldType combination might have been what caused them not to appear):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Defined as&amp;nbsp; Boolean checkboxes without options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"outputFields": [&lt;BR /&gt;{&lt;BR /&gt;"typeDefinition": {&lt;BR /&gt;"name": "compare_result",&lt;BR /&gt;"type": "enumeration",&lt;BR /&gt;"fieldType": "booleancheckbox",&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"outputFieldLabels": { "compare_result": "Result of comparison" }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Defined as Boolean checkboxes with options specified:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"outputFields": [&lt;BR /&gt;{&lt;BR /&gt;"typeDefinition": {&lt;BR /&gt;"name": "compare_result",&lt;BR /&gt;"type": "enumeration",&lt;BR /&gt;"fieldType": "booleancheckbox",&lt;BR /&gt;"options": [&lt;BR /&gt;{ "label": "True", "value": "false" },&lt;BR /&gt;{ "label": "False", "value": "true" }&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"outputFieldLabels": { "compare_result": "Result of comparison" }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Defined as String output:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"outputFields": [&lt;BR /&gt;{&lt;BR /&gt;"typeDefinition": {&lt;BR /&gt;"name": "compare_result",&lt;BR /&gt;"type": "string",&lt;BR /&gt;"fieldType": "text",&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"outputFieldLabels": { "compare_result": "Result of comparison" }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;However, when trying to copy the output to a property, the custom actions outputs&amp;nbsp;dont appear in the list of properties. Only the "Actions final success or failure state" which seems to be a predefined one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PFriederich_0-1647547192420.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/62011i3638D23B5875E91B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PFriederich_0-1647547192420.png" alt="PFriederich_0-1647547192420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers what's going wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 20:01:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/597025#M755</guid>
      <dc:creator>PFriederich</dc:creator>
      <dc:date>2022-03-17T20:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow action not showing outputs</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/608115#M788</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/182920"&gt;@PFriederich&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I think the way you're setting the output is fine but 2 things :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp;Are you properly returning the output fields at the end of your script ?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_0-1649168458643.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/63212iAFF9A146CB1AB47E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LMeert_0-1649168458643.png" alt="LMeert_0-1649168458643.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Have you filled the data output section of the custom code node ?&lt;BR /&gt;You will need to do both in order to use them later on in your workflow.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_1-1649168502592.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/63213i130AED46CDAE27CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LMeert_1-1649168502592.png" alt="LMeert_1-1649168502592.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Here's the result of the example above :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_2-1649168582520.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/63214i5F7945EC43857DDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LMeert_2-1649168582520.png" alt="LMeert_2-1649168582520.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps ! If it does, please consider marking this as a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Have a good day,&lt;/P&gt;
&lt;P&gt;Ludwig&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 14:23:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/608115#M788</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-04-05T14:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow action not showing outputs</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/610176#M797</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue was actually not about "custom code" workflow steps but by custom workflow actions, provided by a hubspot app I'm working on. But you pointed me into the right direction anyways.&lt;BR /&gt;Even though I "tripple checked and was 100% sure......." that my return values were correct, I debugged them again with a fresh mind and voila, it works as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:54:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/610176#M797</guid>
      <dc:creator>PFriederich</dc:creator>
      <dc:date>2022-04-07T15:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow action not showing outputs</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/610178#M798</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/182920"&gt;@PFriederich&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My bad, didn't read the question properly !&lt;/P&gt;
&lt;P&gt;It looks like custom workflow actions and custom code nodes do work the same way, which kinda make sense but is still a lucky coincidence for us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, glad I could help and that you've sorted out your issue !&lt;BR /&gt;&lt;BR /&gt;Take care,&lt;/P&gt;
&lt;P&gt;Ludwig&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 16:01:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/610178#M798</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-04-07T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow action not showing outputs</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/757644#M1297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/182920"&gt;@PFriederich&lt;/a&gt;&amp;nbsp;- I'm working on a custom workflow action with enumeration as an output, and I'm having the same issue. Could you please share your solution?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 06:50:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/757644#M1297</guid>
      <dc:creator>GnHAutomation</dc:creator>
      <dc:date>2023-02-17T06:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow action not showing outputs</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/1000425#M2430</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;could you please explain how exactly ypu solved it. I am facing the same problem.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 08:37:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/1000425#M2430</guid>
      <dc:creator>sam1989</dc:creator>
      <dc:date>2024-07-03T08:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow action not showing outputs</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/1016233#M2482</link>
      <description>&lt;P&gt;How did you solve this? I'm having the same problem, the output fields are not being shown for selection in further steps. if any solution found for this let me know!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 13:50:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/1016233#M2482</guid>
      <dc:creator>SBallesteros</dc:creator>
      <dc:date>2024-07-25T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow action not showing outputs</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/1018581#M2493</link>
      <description>&lt;P&gt;make sure you are returning the exact output fields response from your server that you defined when creating the workflow action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example if the workflow action has defined output defined like this :&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"outputFields": [
 {
  "typeDefinition": {
   "name": "my_output",
   "type": "string",
   "fieldType": "text",
   }
 }
]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;The server response should return in the following&amp;nbsp;format :&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; res.status(200).json({
          "outputFields": {
            "my_output": "SAMPLE OUTPUT VALUE",
            "hs_execution_state": "SUCCESS"
          }
        });&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 08:40:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Custom-Workflow-action-not-showing-outputs/m-p/1018581#M2493</guid>
      <dc:creator>sam1989</dc:creator>
      <dc:date>2024-07-30T08:40:23Z</dc:date>
    </item>
  </channel>
</rss>

