Hi
@Kamal2017,
Let's make sure we're on the same page. When you say you can run the
Download File action, you're referring to the action on the actual
Microsoft Graph - Sharepoint connector, correct? If so, you need to understand that the Web API Service feature of Blue Prism does not actually download files per-se. What it does is captures the response body of the request and presents it to you, as text, in the
Response Content output item. It doesn't write anything to disk.
So, if the content of the response is really just a text-based file you should be able to take the value of Response Content and write it to disk yourself (ex. using the
Utility - File Management VBO) and you're good to go. Where the Web API Services feature croaks is when the content of the response body happens to be binary data (ex. a PDF). In that situation, the Web API converts the content to a string. This conversion basically corrupts the content. From what I've seen there's usually a loss of a certain number of bits. So if you were to try writing the Response Content to disk, as mentioned above, and then tried opening the file you would get an error from the application (ex. trying to open the PDF in Adobe).
That's why I mentioned the use of the
Utility - HTTP VBO above. The
HTTP Request File action, of that VBO, properly handles both text and binary file types and it exposes a property that you can set to the path where you want the downloaded file written to.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------