UiPath HTTP client Activity

Hi,
How to use HTTP client activity from UiPath to call API endpoint for a file down?
The response of the API call will be a zip file download, but I have idea how to receive the file in code. In the HTTP Request Activity, there is response attachment in the output section which is ILocalResourse variable type, but I am not familiar with ILocalResourse type.
Had any body used the HTTP Request activity to download a file in the response before?

Thanks in advance.

Hi,

If what you need exists in the ILocalResource (let’s say varILocalResource), the following will return its filename with full path.

varIlocalResource.LocalPath

If there is no result in the above, please check specification of API because it may return result in other part such as response body etc.

Regards,

1 Like