<?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 .xlsx file using POST API. in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77062#M29403</link>
    <description>Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="a9e3ffb9-b988-46c9-826d-ff6613f690de" data-tag-text="@sushma Achar" href="https://community.blueprism.com/network/profile?UserKey=a9e3ffb9-b988-46c9-826d-ff6613f690de" data-itemmentionkey="c751a9cc-e0d4-47ab-b58b-57602d08dc14"&gt;@sushma Achar&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;The &lt;STRONG&gt;FieldMetadata&lt;/STRONG&gt; collection is designed to hold Name/Value pairs that are essentially text data that needs to be added to the multipart request body. Whether you need to include these or not is based on the specific platform you're trying to communicate with. For example, ServiceNow exposes a REST API for uploading attachments. If you perform a multipart POST to their API, they require that you include two parameters in the request body (i.e. table_name and table_sys_id). So, is that case we would populate the FieldMetadata collection like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15530.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15694iB0459A6C51B075F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="15530.png" alt="15530.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Hopefully that helps.&lt;BR /&gt;&lt;BR /&gt;Cheers,&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, 26 Oct 2022 23:15:00 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2022-10-26T23:15:00Z</dc:date>
    <item>
      <title>sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77052#M29393</link>
      <description>I have a requirement of sending .xlsx file using POST API.&lt;BR /&gt;&lt;BR /&gt;I guess Ideal way of doing this is to use Single File option in WEB API configuration and passing Binary file from process.&lt;BR /&gt;&lt;BR /&gt;But unfortunately the WEB API definition does not support the Binary File, even when used Binary File option from POSTMAN , it throws server error.&lt;BR /&gt;&lt;BR /&gt;There are two options available it seems&lt;BR /&gt;&lt;BR /&gt;1 ) Form-data : When I use this option in POSTMAN, it works fine but not sure how to use this option in Blueprism as Blueprism supports only below option&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 05:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77052#M29393</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-19T05:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77053#M29394</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="f1ef64de-dfad-4713-a463-b2799f36cc97" data-tag-text="@Kirtish Trivedi" href="https://community.blueprism.com/network/profile?UserKey=f1ef64de-dfad-4713-a463-b2799f36cc97" data-itemmentionkey="e794b410-e509-49c9-b0fb-8a2ce747a549"&gt;@Kirtish Trivedi&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Is the service that you're posting the spreadsheet something internal? Just wondering if you can work with the developer of that service to account for the file upload using the BP Web API service feature? If not, another option would be to use the &lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---http" target="_blank" rel="noopener"&gt;Utility - HTTP&lt;/A&gt; VBO​ available on the DX.&lt;BR /&gt;&lt;BR /&gt;Cheers,&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>Mon, 26 Jul 2021 13:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77053#M29394</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-07-26T13:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77054#M29395</link>
      <description>Hi Kirtish,&lt;BR /&gt;&lt;BR /&gt;If you have a REST API endpoint that supports a single straight binary file, you can use the native Web API Services feature by setting the Body Content to Single File and then find ways to upload the file in binary format to the exposed binary parameter.&lt;BR /&gt;&lt;BR /&gt;If you have a multipart/form-date involving a binary field, I am afraid you are not able to use Web API Services, neither a generic VBO like Utility - HTTP VBO to achieve this. The main reason is the data format of the Body field, is in Text/String, which is not capable of storing binary data. In the case of Web API Services feature, it would implicitly convert any binary fields to Base64 encoding, resulting in the file become not readable once uploaded by the endpoint. You must either devise a heavily customised VBO, or use a pure code stage approach to achieve this. I have created an example by using the code sample from &lt;A href="https://briangrinstead.com/blog/multipart-form-post-in-c/" target="_blank" rel="noopener"&gt;https://briangrinstead.com/blog/multipart-form-post-in-c/&lt;/A&gt; before for a customer. I have attached here for your reference. The said example works with &lt;EM&gt;&lt;STRONG&gt;Microsoft Cognitive Services &amp;gt; Analyze Image&lt;/STRONG&gt;&lt;/EM&gt; endpoint (&lt;A href="https://westus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-2/operations/56f91f2e778daf14a499f21b" target="_blank" rel="noopener"&gt;https://westus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-2/operations/56f91f2e778daf14a499f21b&lt;/A&gt;) . The endpoint accepts three different types of inputs, and the example implements "multipart/form-data" specifically.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bruce Liu&lt;BR /&gt;Senior Product Consultant, Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Australia/Sydney&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 00:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77054#M29395</guid>
      <dc:creator>bruce.liu</dc:creator>
      <dc:date>2021-07-28T00:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77055#M29396</link>
      <description>Thank you for response &lt;A class="user-content-mention" data-sign="@" data-contactkey="0a9b5778-7ac7-4764-a9c9-822633ad2ffb" data-tag-text="@Bruce Liu" href="https://community.blueprism.com/people/bruce-liu1" data-itemmentionkey="9efd3845-b597-49c4-8734-97c4d9d40983"&gt;@Bruce Liu&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Unfortunately API does not supports Binary file. I went with HTTP VBO option action HTTP Request Multipart. It is working fine with Small size file but throwing error with Large file size. I will post the detailed error info in other thread&lt;BR /&gt;&lt;BR /&gt;Thank you ​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 05:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77055#M29396</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-28T05:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77056#M29397</link>
      <description>Hi &lt;SPAN&gt;Kirtish,&lt;BR /&gt;&lt;BR /&gt;Just to be precise, API services does support binary, just not binary in a multipart/form-data body.&lt;BR /&gt;&lt;BR /&gt;Also, I would ask you to check again if you have managed to achieve it using HTTP VBO. Try to access the file you have uploaded, to see if you can open it using whichever application it is designed for. I have a feeling that the file will be shown as corrupted. Successfully invoking the API endpoint does not necessarily mean the file has been uploaded correctly. This is important, otherwise you will be wasting quite a lot of time devising unnecessary workaround.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bruce Liu&lt;BR /&gt;Senior Product Consultant, Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Australia/Sydney&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 06:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77056#M29397</guid>
      <dc:creator>bruce.liu</dc:creator>
      <dc:date>2021-07-28T06:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77057#M29398</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="0a9b5778-7ac7-4764-a9c9-822633ad2ffb" data-tag-text="@Bruce Liu" href="https://community.blueprism.com/people/bruce-liu1" data-itemmentionkey="035c8d0c-272f-469e-b677-8e46f14bef69"&gt;@Bruce Liu&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Yes I am able to Upload the smaller file using newly added Multipart action of Utility HTTP.&lt;BR /&gt;&lt;BR /&gt;But while uploading larger file size , it throws an error. &lt;BR /&gt;&lt;BR /&gt;It throws below error &lt;BR /&gt;&lt;SPAN&gt;Error :&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could not execute code stage because exception thrown by code stage:&amp;nbsp;&lt;STRONG&gt;Object reference not set to an instance of an object.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;When I remove the Try catch block , it shows below error&amp;nbsp;&lt;BR /&gt;Could not execute code stage because exception thrown by code stage:&amp;nbsp;&lt;STRONG&gt;The operation Timed out&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Hence I assume this is related to timeout. It takes around 2 min 10 seconds before it throws error.&lt;BR /&gt;&lt;BR /&gt;Also it is working from POSTMAN hence nothing wrong from API side&lt;BR /&gt;&lt;BR /&gt;Is there anything needs to be done to increase timeout limit from Blueprism or is there any other issue ?&lt;/SPAN&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 07:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77057#M29398</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-28T07:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77058#M29399</link>
      <description>Hi Kirtish,&lt;BR /&gt;&lt;BR /&gt;Ok, I see the HTTP VBO has been updated to include the mulitpart/form-data support. You should be able to work with this.&lt;BR /&gt;&lt;BR /&gt;Try to add a line (i.e. line 3 in the screenshot below) in the code stage&amp;nbsp; of the action "HTTP Request Multipart" to set the timeout to 100000 milliseconds (100 seconds), from 10000 milliseconds (10 seconds). This should resolve your issue. You can find &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.net.webrequest.timeout?view=net-5.0" target="_blank" rel="noopener"&gt;this Microsoft article&lt;/A&gt; here in relation to this property.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15525.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15689i42B48D63EFDB5A44/image-size/large?v=v2&amp;amp;px=999" role="button" title="15525.png" alt="15525.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bruce Liu&lt;BR /&gt;Senior Product Consultant, Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Australia/Sydney&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 07:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77058#M29399</guid>
      <dc:creator>bruce.liu</dc:creator>
      <dc:date>2021-07-28T07:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77059#M29400</link>
      <description>Thank you &lt;A class="user-content-mention" data-sign="@" data-contactkey="0a9b5778-7ac7-4764-a9c9-822633ad2ffb" data-tag-text="@Bruce Liu" href="https://community.blueprism.com/people/bruce-liu1" data-itemmentionkey="e8c5902f-a389-40be-b012-8649e8ea9874"&gt;@Bruce Liu&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Setting up request.timeout worked :)​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 09:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77059#M29400</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-28T09:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77060#M29401</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="f1ef64de-dfad-4713-a463-b2799f36cc97" data-tag-text="@Kirtish Trivedi" href="https://community.blueprism.com/network/profile?UserKey=f1ef64de-dfad-4713-a463-b2799f36cc97" data-itemmentionkey="96902a0f-a6fb-44ad-909c-9a41dbf75d6c"&gt;@Kirtish Trivedi&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Glad to hear &lt;A class="user-content-mention" data-sign="@" data-contactkey="0a9b5778-7ac7-4764-a9c9-822633ad2ffb" data-tag-text="@Bruce Liu" href="https://community.blueprism.com/people/bruce-liu1" data-itemmentionkey="f12a8f0e-e400-446d-b845-6f8ae93fc7c7"&gt;@Bruce Liu&lt;/A&gt;'s suggestion has gotten you over the hurdle. I'll add an action to our backlog to update the HTTP VBO to include a configurable timeout parameter.&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, 28 Jul 2021 13:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77060#M29401</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-07-28T13:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77061#M29402</link>
      <description>Hi @Kirtish Trivedi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;I know the post is old but I am facing issue in uploading the xlsx file with the HTTP Request Multipart action. May I know what values needs to be added&amp;nbsp; in "FieldMetadata" collection. My "FileMetadata" collection looks like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15528.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15687i2C24180D081429B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="15528.png" alt="15528.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;sushma Achar&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Oct 2022 20:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77061#M29402</guid>
      <dc:creator>sushmaAchar</dc:creator>
      <dc:date>2022-10-26T20:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77062#M29403</link>
      <description>Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="a9e3ffb9-b988-46c9-826d-ff6613f690de" data-tag-text="@sushma Achar" href="https://community.blueprism.com/network/profile?UserKey=a9e3ffb9-b988-46c9-826d-ff6613f690de" data-itemmentionkey="c751a9cc-e0d4-47ab-b58b-57602d08dc14"&gt;@sushma Achar&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;The &lt;STRONG&gt;FieldMetadata&lt;/STRONG&gt; collection is designed to hold Name/Value pairs that are essentially text data that needs to be added to the multipart request body. Whether you need to include these or not is based on the specific platform you're trying to communicate with. For example, ServiceNow exposes a REST API for uploading attachments. If you perform a multipart POST to their API, they require that you include two parameters in the request body (i.e. table_name and table_sys_id). So, is that case we would populate the FieldMetadata collection like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15530.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15694iB0459A6C51B075F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="15530.png" alt="15530.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Hopefully that helps.&lt;BR /&gt;&lt;BR /&gt;Cheers,&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, 26 Oct 2022 23:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77062#M29403</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-10-26T23:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: sending .xlsx file using POST API.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77063#M29404</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;, Will work with this, Thank you​​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;sushma Achar&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Oct 2022 12:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/sending-xlsx-file-using-POST-API/m-p/77063#M29404</guid>
      <dc:creator>sushmaAchar</dc:creator>
      <dc:date>2022-10-27T12:44:00Z</dc:date>
    </item>
  </channel>
</rss>

