+ Start a Discussion
Zain AmeerullahZain Ameerullah 

HTTP Callout to Azure Blob any good example would be helpful

Hi,
Thank you for reading my question first. I am facing difficulty in connecting to Azure Blob from Salesforce APEX class.
I am following this example from and following link for reference
 https://github.com/nagensahu/AzureBlobStorage-Salesforce/blob/master/Readme.md
This is in the end my header looks like
x-ms-date: Wed, 11 Mar 2020 00:36:39 GMT
x-ms-version : 2015-12-11 Content-Length : 213980
Authorization: SharedKey zaindevtesting:6SfwH21pfpr9NiiK8PXXL9IMOs9SWNEvl3Elj2Jfc3w%3D
Content-Type:application/pdf
Request Type PUT 
https://zaindevtesting.blob.core.windows.net/zaindevblob/Consent+form+%281%29.pdf
I have tried using postman but getting same. You can use same Link to access my test Azure from postman and let me know if some information is required.
I am trying to upload file from sales force but getting following error.
 
<?xml version="1.0" encoding="utf-8"?>
<Error>
    <Code>InvalidAuthenticationInfo</Code>
    <Message>Authentication information is not given in the correct format. Check the value of Authorization header.
RequestId:6b4f54fd-501e-0013-5f9e-f6c88c000000
Time:2020-03-10T05:43:44.8911977Z</Message>
</Error>

 
NK@BITNK@BIT
Salesforce : Upload blob files to Azure portal using REST API (https://nitinkhunalsalesforce.wordpress.com/2021/03/28/salesforce-upload-files-to-azure-portal/)