<?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 Multipart request using custom action? in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/multipart-request-using-custom-action/m-p/5467#M2409</link>
    <description>&lt;P&gt;Im looking at the Dynamics CRM connector and I have hit a situation where I need to specify a multipart request (inorder to use there batch api) however the standard connector does not seem to support this action. i do see that custom action is supported however this body is always Json...&lt;BR /&gt;&lt;BR /&gt;Do I need to make my own connector to handle this action or is there something I'm just overlooking e.g. a way do define a multipart request as Json.&lt;BR /&gt;&lt;BR /&gt;example Microsoft batch&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;POST [Organization Uri]/api/data/v9.2/$batch HTTP/1.1
OData-MaxVersion: 4.0
OData-Version: 4.0
If-None-Match: null
Accept: application/json
Content-Type: multipart/mixed; boundary="batch_80dd1615-2a10-428a-bb6f-0e559792721f"

--batch_80dd1615-2a10-428a-bb6f-0e559792721f
Content-Type: application/http
Content-Transfer-Encoding: binary

POST /api/data/v9.2/tasks HTTP/1.1
Content-Type: application/json; type=entry

{
  "subject": "Task 1 in batch",
  "regardingobjectid_account_task@odata.bind": "accounts(00000000-0000-0000-0000-000000000001)"
}
--batch_80dd1615-2a10-428a-bb6f-0e559792721f
Content-Type: application/http
Content-Transfer-Encoding: binary

POST /api/data/v9.2/tasks HTTP/1.1
Content-Type: application/json; type=entry

{
  "subject": "Task 2 in batch",
  "regardingobjectid_account_task@odata.bind": "accounts(00000000-0000-0000-0000-000000000001)"
}
--batch_80dd1615-2a10-428a-bb6f-0e559792721f
Content-Type: application/http
Content-Transfer-Encoding: binary

POST /api/data/v9.2/tasks HTTP/1.1
Content-Type: application/json; type=entry

{
  "subject": "Task 3 in batch",
  "regardingobjectid_account_task@odata.bind": "accounts(00000000-0000-0000-0000-000000000001)"
}
--batch_80dd1615-2a10-428a-bb6f-0e559792721f
Content-Type: application/http
Content-Transfer-Encoding: binary

GET /api/data/v9.2/accounts(00000000-0000-0000-0000-000000000001)/Account_Tasks?$select=subject HTTP/1.1


--batch_80dd1615-2a10-428a-bb6f-0e559792721f--&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 13:43:34 GMT</pubDate>
    <dc:creator>ryan-avent</dc:creator>
    <dc:date>2023-10-20T13:43:34Z</dc:date>
    <item>
      <title>Multipart request using custom action?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/multipart-request-using-custom-action/m-p/5467#M2409</link>
      <description>&lt;P&gt;Im looking at the Dynamics CRM connector and I have hit a situation where I need to specify a multipart request (inorder to use there batch api) however the standard connector does not seem to support this action. i do see that custom action is supported however this body is always Json...&lt;BR /&gt;&lt;BR /&gt;Do I need to make my own connector to handle this action or is there something I'm just overlooking e.g. a way do define a multipart request as Json.&lt;BR /&gt;&lt;BR /&gt;example Microsoft batch&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;POST [Organization Uri]/api/data/v9.2/$batch HTTP/1.1
OData-MaxVersion: 4.0
OData-Version: 4.0
If-None-Match: null
Accept: application/json
Content-Type: multipart/mixed; boundary="batch_80dd1615-2a10-428a-bb6f-0e559792721f"

--batch_80dd1615-2a10-428a-bb6f-0e559792721f
Content-Type: application/http
Content-Transfer-Encoding: binary

POST /api/data/v9.2/tasks HTTP/1.1
Content-Type: application/json; type=entry

{
  "subject": "Task 1 in batch",
  "regardingobjectid_account_task@odata.bind": "accounts(00000000-0000-0000-0000-000000000001)"
}
--batch_80dd1615-2a10-428a-bb6f-0e559792721f
Content-Type: application/http
Content-Transfer-Encoding: binary

POST /api/data/v9.2/tasks HTTP/1.1
Content-Type: application/json; type=entry

{
  "subject": "Task 2 in batch",
  "regardingobjectid_account_task@odata.bind": "accounts(00000000-0000-0000-0000-000000000001)"
}
--batch_80dd1615-2a10-428a-bb6f-0e559792721f
Content-Type: application/http
Content-Transfer-Encoding: binary

POST /api/data/v9.2/tasks HTTP/1.1
Content-Type: application/json; type=entry

{
  "subject": "Task 3 in batch",
  "regardingobjectid_account_task@odata.bind": "accounts(00000000-0000-0000-0000-000000000001)"
}
--batch_80dd1615-2a10-428a-bb6f-0e559792721f
Content-Type: application/http
Content-Transfer-Encoding: binary

GET /api/data/v9.2/accounts(00000000-0000-0000-0000-000000000001)/Account_Tasks?$select=subject HTTP/1.1


--batch_80dd1615-2a10-428a-bb6f-0e559792721f--&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 13:43:34 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/multipart-request-using-custom-action/m-p/5467#M2409</guid>
      <dc:creator>ryan-avent</dc:creator>
      <dc:date>2023-10-20T13:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multipart request using custom action?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/multipart-request-using-custom-action/m-p/5486#M2418</link>
      <description>&lt;P&gt;A custom connector would definitely get the job done... but would it work to use multiple custom actions in a row? Or perhaps the Ruby/Python connector (I haven't used those much).&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 20:34:54 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/multipart-request-using-custom-action/m-p/5486#M2418</guid>
      <dc:creator>GrailAutomation</dc:creator>
      <dc:date>2023-10-25T20:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multipart request using custom action?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/multipart-request-using-custom-action/m-p/5530#M2436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/7166"&gt;@ryan-avent&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;On the custom action in Microsoft Dynamics, have you tried using a Raw response and adding the Content-Type on the Request Header? I can't see any similar use case, but I have tried this using a multipart form for GDrive, and it worked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marlonmuela_0-1698677384956.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/798i60E87CB23D675674/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="marlonmuela_0-1698677384956.png" alt="marlonmuela_0-1698677384956.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If it doesn't work; you can try using HTTP or SDK connector.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 14:50:05 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/multipart-request-using-custom-action/m-p/5530#M2436</guid>
      <dc:creator>marlon-muela</dc:creator>
      <dc:date>2023-10-30T14:50:05Z</dc:date>
    </item>
  </channel>
</rss>

