<?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 returns a JSON in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Workflow-Action-returns-a-JSON/m-p/1039655#M76543</link>
    <description>&lt;P&gt;Thanks &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/711889"&gt;@Humashankar&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 17:06:48 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2024-09-11T17:06:48Z</dc:date>
    <item>
      <title>Custom Workflow Action returns a JSON</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Workflow-Action-returns-a-JSON/m-p/1038325#M76466</link>
      <description>&lt;P&gt;Hey HubSpot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m working on a Custom Workflow Action that triggers an API call and returns a JSON response. The challenge I’m facing is that the structure of the JSON response isn’t static, so I can't predefine the fields using the Definition API. Here’s the current output field definition I’m using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "typeDefinition": {
    "name": "crew_result_raw",
    "type": "json",
    "fieldType": "text"
  },
  "supportedValueTypes": ["STATIC_VALUE"]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to extract specific values from this JSON (e.g., crew_result_raw["my_custom_key"]) and use them in other workflow actions, like sending internal email notifications. However, I haven’t found a simple way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to dynamically parse and reference values from this JSON field in other workflows? If not, could you suggest an alternative solution for achieving this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 12:38:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Workflow-Action-returns-a-JSON/m-p/1038325#M76466</guid>
      <dc:creator>vinib</dc:creator>
      <dc:date>2024-09-09T12:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow Action returns a JSON</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Workflow-Action-returns-a-JSON/m-p/1039078#M76511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/823404"&gt;@vinib&lt;/a&gt;!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Good morning and thanks for reaching out! From my understanding, you'd like to apply JSON coding dynamically in a custom-coded workflow action to be able to use values pulled in with the code when sending internal email notifications in a workflow. Is that correct?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Had you tried implementing &lt;A href="https://knowledge.hubspot.com/workflows/use-if-then-branches-in-workflows" target="_blank"&gt;branches&lt;/A&gt; for conditional logic in the workflow and adding &lt;A href="https://knowledge.hubspot.com/website-pages/personalize-your-content" target="_blank"&gt;personalization tokens&lt;/A&gt; in the internal email action(s)?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Would you be able to share a screenshot of your workflow actions and another of that specific action so we have additional context?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This doesn't look to be a default functionality that's supported, but I found this other post that seems to get at a similar goal to yours in case you find it helpful:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/how-to-create-dinamyc-inputs-in-my-custom-action/td-p/1000774" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/how-to-create-dinamyc-inputs-in-my-custom-action/td-p/1000774&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Tagging in HubSpot subject matter experts&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/711889"&gt;@Humashankar&lt;/a&gt;&amp;nbsp;, &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/673740"&gt;@Danielle_J&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;in case they have further insight. Any thoughts?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you and have a great day!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best,&amp;nbsp;&lt;BR /&gt;Jessie&lt;BR /&gt;HubSpot Community Moderator&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 18:16:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Workflow-Action-returns-a-JSON/m-p/1039078#M76511</guid>
      <dc:creator>JessieS</dc:creator>
      <dc:date>2024-09-10T18:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow Action returns a JSON</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Workflow-Action-returns-a-JSON/m-p/1039220#M76518</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/823404"&gt;@vinib&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have JavaScript expertise, you can utilize HubSpot's Custom Code Actions to craft a script that interprets the JSON response, extracts the required values, and stores them in a custom HubSpot property or utilizes them directly in your workflow actions.&lt;/P&gt;
&lt;P&gt;Though, if your JSON structure is complex and varied, consider developing a middleware service to handle advanced parsing.&lt;/P&gt;
&lt;P&gt;This service can process the JSON externally, extract specific values, and return them to HubSpot via a webhook, enabling their use in your workflow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hope this helps - Happy to help further!!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Thank you very much and have a great one!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warm regards&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 21:37:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Workflow-Action-returns-a-JSON/m-p/1039220#M76518</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-09-10T21:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Workflow Action returns a JSON</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Workflow-Action-returns-a-JSON/m-p/1039655#M76543</link>
      <description>&lt;P&gt;Thanks &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/711889"&gt;@Humashankar&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 17:06:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Workflow-Action-returns-a-JSON/m-p/1039655#M76543</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-09-11T17:06:48Z</dc:date>
    </item>
  </channel>
</rss>

