<?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: Sending Multipart form to API in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73890#M26495</link>
    <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/39102"&gt;@Ernest_Christia&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you share some details about the API you're trying to invoke and some screenshots of your action stage configuration and Collection definitions?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 25 Jan 2023 18:58:00 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2023-01-25T18:58:00Z</dc:date>
    <item>
      <title>Sending Multipart form to API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73886#M26491</link>
      <description>Hello,&lt;BR /&gt;We are asked to send a multipart form data to an API using HTTP POST. Should this be done via the Utility HTTP business object under the POST action or should we define this in System under Web API Services?&lt;BR /&gt;&lt;BR /&gt;There are a few requirements:&lt;BR /&gt;1. Two static header key and values&lt;BR /&gt;2. One variable header key and values (can change per item/transaction)&lt;BR /&gt;3. The body is composed of something like:&lt;BR /&gt;
&lt;P&gt;--form 'metadata="{&lt;BR /&gt;"documents": [&lt;BR /&gt;{&lt;BR /&gt;"documentName": "sample.pdf",&lt;BR /&gt;"documentExtension": "pdf",&lt;BR /&gt;"documentCategory": "Other Form",&lt;BR /&gt;"documentDescription": "Other form uploaded",&lt;BR /&gt;"messageId": null,&lt;BR /&gt;"documentUploadedBy": "BOT_USER",&lt;BR /&gt;"toDisplayText": "ITEM_ID",&lt;BR /&gt;"toEmail": "testemail@gmail.com"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;"' \&lt;BR /&gt;--form 'file=sample.pdf'&lt;/P&gt;
^ in the body, aside from supplying the metadata values the file will be uploaded (file=sample.pdf).&lt;BR /&gt;&lt;BR /&gt;I've seen an example in an old post where multipart form data is sent under a template which has [boundary] in the text portion but I couldn't make heads or tails of it, like what is a "boundary" and are everything under [] in a template, parameters? Also are all those parameters required, like the "boundary" mentioned?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hoping someone can give a simpler explanation for multipart form sending in Blue Prism.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Chris&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ernest Christian Javier&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2023 11:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73886#M26491</guid>
      <dc:creator>Ernest_Christia</dc:creator>
      <dc:date>2023-01-23T11:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Sending Multipart form to API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73887#M26492</link>
      <description>HI Chris,&lt;BR /&gt;&lt;BR /&gt;Thank you for being a SS&amp;amp;C Blue Prism customer and for using Blue Prism.&lt;BR /&gt;&lt;BR /&gt;Multipart, personally I have always found it a bit of a minefield but to try to help. A boundary is that area that separates the parts, hence making it a multipart documents. You should be able to accomplish what you need using the HTTP VBO. &lt;BR /&gt;&lt;BR /&gt;Now, there are quite a few messages on the community boards regarding multipart so my suggestion to you would be to have a search and see what you can find. I usually find every implementation of multipart is different and I have fought with some seemingly crazy implementations over the years.&lt;BR /&gt;&lt;BR /&gt;See how you go and if you are still struggling, come back to us and we will see what else we can do to help.&lt;BR /&gt;&lt;BR /&gt;Once again, thank you for being a SS&amp;amp;C Blue Prism customer.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Geoff Hirst&lt;BR /&gt;Senior DX Engineer - Digital Exchange - EMEA&lt;BR /&gt;SS&amp;amp;C Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73887#M26492</guid>
      <dc:creator>GeoffHirst</dc:creator>
      <dc:date>2023-01-23T14:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: Sending Multipart form to API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73888#M26493</link>
      <description>Thank you, Geoff. Trying the HTTP Utility VBO right now. Not sure if the file is getting uploaded even though I just send as input the FilePath which is in text and not binary or base64.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ernest Christian Javier&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2023 17:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73888#M26493</guid>
      <dc:creator>Ernest_Christia</dc:creator>
      <dc:date>2023-01-23T17:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Sending Multipart form to API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73889#M26494</link>
      <description>Hi Geoff,&lt;BR /&gt;&lt;BR /&gt;Getting some issue in using the header portion of HTTP Utility.&lt;BR /&gt;The response from the server was "Missing API Key Header" despite us including the header collection comprised of the required values:&lt;BR /&gt;apikey, name_id and partId&amp;nbsp; on the corresponding Key and Value columns.&lt;BR /&gt;&lt;BR /&gt;ForcePreAuth and UseBearerToken are both false as well.&lt;BR /&gt;&lt;BR /&gt;Is there another setting we would have to include in order for the headers to be included in the request?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chris&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ernest Christian Javier&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jan 2023 17:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73889#M26494</guid>
      <dc:creator>Ernest_Christia</dc:creator>
      <dc:date>2023-01-25T17:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: Sending Multipart form to API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73890#M26495</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/39102"&gt;@Ernest_Christia&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you share some details about the API you're trying to invoke and some screenshots of your action stage configuration and Collection definitions?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jan 2023 18:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73890#M26495</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-01-25T18:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: Sending Multipart form to API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73891#M26496</link>
      <description>Hi Eric,&lt;BR /&gt;The API is expecting something like this:&lt;BR /&gt;HEADER:&lt;BR /&gt;--header 'apikey: &amp;lt;ApiKey&amp;gt;'\&lt;BR /&gt;--header 'name_id: &amp;lt;NameId&amp;gt;' \&lt;BR /&gt;--header 'partId: &amp;lt;PartId&amp;gt;' \&lt;BR /&gt;&lt;BR /&gt;BODY:&lt;BR /&gt;--form 'metadata="{&lt;BR /&gt;\"documents\": [&lt;BR /&gt;{&lt;BR /&gt;\"documentName\": \"&amp;lt;DocumentName&amp;gt;\",&lt;BR /&gt;\"documentExtension\": \"&amp;lt;DocumentExt&amp;gt;\",&lt;BR /&gt;\"documentCategory\": \"&amp;lt;DocumentCat&amp;gt;\",&lt;BR /&gt;\"documentDescription\": \"&amp;lt;DocumentDesc&amp;gt;\",&lt;BR /&gt;\"messageId\": null,&lt;BR /&gt;\"documentUploadedBy\": \"&amp;lt;UploadedBy&amp;gt;\",&lt;BR /&gt;\"toDisplayText\": \"&amp;lt;DisplayText&amp;gt;\",&lt;BR /&gt;\"toEmail\": \"&amp;lt;EmailTo&amp;gt;\"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}"' \&lt;BR /&gt;--form 'file=@"&amp;lt;FilePathToUpload&amp;gt;"'&lt;BR /&gt;&lt;BR /&gt;(Tried to upload an image of our BP implementation, but the upload does not seem to work so I will describe it instead.)&lt;BR /&gt;&lt;BR /&gt;* We are using the business object Utility HTTP (the new one) and the action used is the Multipart Form.&lt;BR /&gt;* Parameters Supplied are:&lt;BR /&gt;Address URL&lt;BR /&gt;Headers&lt;BR /&gt;Force Pre Authorization - False&lt;BR /&gt;Use Bearer Token - False&lt;BR /&gt;FileMetadata&lt;BR /&gt;FieldMetadata&lt;BR /&gt;&lt;BR /&gt;For FileMetadata Collection, the filled out value is the FilePath containing the file to be uploaded's path. Other fields are left blank.&lt;BR /&gt;For FieldMetadata Collection, there are two fields, the Name and Value.&lt;BR /&gt;Name contains the value "metadata"&lt;BR /&gt;Value contains (the items above after the "metadata=" including the brackets but no \ on the double quotes).&lt;BR /&gt;&lt;BR /&gt;So far, the request has been failing in the header validation. Which is odd considering the apikey, name_id and partId are in the "Key" field of the collection, while the "Value" field of the collection contains their corresponding values.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ernest Christian Javier&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2023 13:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73891#M26496</guid>
      <dc:creator>Ernest_Christia</dc:creator>
      <dc:date>2023-01-26T13:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Sending Multipart form to API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73892#M26497</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It seems to me that the Header collection might have been incorrectly configured. Below is what it should be like.&lt;BR /&gt;Also what does Part_Id refer to as per the documentation?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31425.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31553i92361E6A6F117CAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="31425.png" alt="31425.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31426.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31552i6AAD22BB4DADCB9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="31426.png" alt="31426.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2023 16:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73892#M26497</guid>
      <dc:creator>shashank.kumar280</dc:creator>
      <dc:date>2023-01-26T16:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Sending Multipart form to API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73893#M26498</link>
      <description>Thank you for this. I was able to get through the header validation.&lt;BR /&gt;&lt;BR /&gt;However the new error is that the uploaded file is coming in as an empty file. &lt;BR /&gt;&lt;BR /&gt;Should I enter values in the FileMetadata? I have seen in an old post that someone used application/octet-stream in the&amp;nbsp; ContentType field. I tried it but still getting the response that the file being sent is an empty file (it isn't, it is a pdf with some content).&lt;BR /&gt;&lt;BR /&gt;Could the error be because we're sending "FilePath" while only "file" is expected in the Body?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ernest Christian Javier&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jan 2023 18:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73893#M26498</guid>
      <dc:creator>Ernest_Christia</dc:creator>
      <dc:date>2023-01-27T18:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: Sending Multipart form to API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73894#M26499</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Was able to finally send the file successfully. It appears that it was necessary to set the Content-Type as application/octet-stream in order for the file to be pushed successfully.&lt;/P&gt;
&lt;P&gt;Thanks everyone for your help and suggestions.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ernest Christian Javier&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-Multipart-form-to-API/m-p/73894#M26499</guid>
      <dc:creator>Ernest_Christia</dc:creator>
      <dc:date>2023-02-09T19:57:00Z</dc:date>
    </item>
  </channel>
</rss>

