<?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 Create Specific Payload for Workflow Extension in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Create-Specific-Payload-for-Workflow-Extension/m-p/377188#M37076</link>
    <description>&lt;P&gt;Our team is trying to build out a workflow extension to post to an API endpoint. One issue we've run into is that the Workflow Extensions posts the data in a way that includes extra information and is not structured in a way the API endpoint is expecting it. Is there a way to adjust the actual body of the Workflow Extension post to have the data properly structered for the send (included having nested items)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Format:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "identifier": "test@example.com",
  "test": true,
  "requestInformation": "Very Long String",
  "purposes": [
  {
    "Id": "96bd1d28-8205-40b9-ab54-9ccbb7a05d9a"
  }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Actual Format:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"origin": {
      "portalId": XXXXXX,
      "actionDefinitionId": XXXX,
      "actionDefinitionVersion": 1,
      "extensionDefinitionId": XXXX,
      "extensionDefinitionVersionId": 1
    },
    "context": {
      "source": "WORKFLOWS",
      "workflowId": 39528560
    },
    "object": {
      "objectId": 145269551,
      "objectType": "CONTACT"
    },
    "fields": {
      "identifier": "test@example.com",
      "test": "true",
      "requestInformation": "Very Long String",
      "purposes": "[{ Id: 96bd1d28-8205-40b9-ab54-9ccbb7a05d9a}]"
    },
    "callbackId": "ap-XXXXXX-XXXXXXXXX-7-0",
    "inputFields": {
      "identifier": "test@example.com",
      "test": "true",
      "requestInformation": "Very Long String",
      "purposes": "[{ Id: 96bd1d28-8205-40b9-ab54-9ccbb7a05d9a}]"
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2020 21:29:50 GMT</pubDate>
    <dc:creator>mgoswick</dc:creator>
    <dc:date>2020-10-07T21:29:50Z</dc:date>
    <item>
      <title>Create Specific Payload for Workflow Extension</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Create-Specific-Payload-for-Workflow-Extension/m-p/377188#M37076</link>
      <description>&lt;P&gt;Our team is trying to build out a workflow extension to post to an API endpoint. One issue we've run into is that the Workflow Extensions posts the data in a way that includes extra information and is not structured in a way the API endpoint is expecting it. Is there a way to adjust the actual body of the Workflow Extension post to have the data properly structered for the send (included having nested items)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Format:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "identifier": "test@example.com",
  "test": true,
  "requestInformation": "Very Long String",
  "purposes": [
  {
    "Id": "96bd1d28-8205-40b9-ab54-9ccbb7a05d9a"
  }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Actual Format:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"origin": {
      "portalId": XXXXXX,
      "actionDefinitionId": XXXX,
      "actionDefinitionVersion": 1,
      "extensionDefinitionId": XXXX,
      "extensionDefinitionVersionId": 1
    },
    "context": {
      "source": "WORKFLOWS",
      "workflowId": 39528560
    },
    "object": {
      "objectId": 145269551,
      "objectType": "CONTACT"
    },
    "fields": {
      "identifier": "test@example.com",
      "test": "true",
      "requestInformation": "Very Long String",
      "purposes": "[{ Id: 96bd1d28-8205-40b9-ab54-9ccbb7a05d9a}]"
    },
    "callbackId": "ap-XXXXXX-XXXXXXXXX-7-0",
    "inputFields": {
      "identifier": "test@example.com",
      "test": "true",
      "requestInformation": "Very Long String",
      "purposes": "[{ Id: 96bd1d28-8205-40b9-ab54-9ccbb7a05d9a}]"
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 21:29:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Create-Specific-Payload-for-Workflow-Extension/m-p/377188#M37076</guid>
      <dc:creator>mgoswick</dc:creator>
      <dc:date>2020-10-07T21:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Specific Payload for Workflow Extension</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Create-Specific-Payload-for-Workflow-Extension/m-p/378063#M37165</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/799"&gt;@mgoswick&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Sorry for the slow response.&amp;nbsp; The payload &lt;STRONG&gt;cannot&lt;/STRONG&gt; be manipulated.&amp;nbsp; If you have suggestions on updating this, you should add it to the &lt;A href="https://community.hubspot.com/t5/custom/page/page-id/ideaslandingpage" target="_blank" rel="noopener"&gt;Ideas board&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully, you have worked something out!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 14:35:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Create-Specific-Payload-for-Workflow-Extension/m-p/378063#M37165</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-10-12T14:35:56Z</dc:date>
    </item>
  </channel>
</rss>

