Skip to main content

Notifications

Community site session details

Community site session details

Session Id : VXbUmZ610e5W8lDc6KemFp
Power Apps - Microsoft Dataverse
Unanswered

How to call azure blob api from dynamics 365?

Like (0) ShareShare
ReportReport
Posted on 27 Apr 2021 07:40:57 by

Hello everyone,

 

I am using azure blob as the storage for my power apps application. I tried out-of-the-box integration of powerapps portal with azure blob. But  I want to have additional functionalities like searching files stored in Azure blob storage from the powerapps model driven app. And also adding metadata to the files when we are uploading files within dynamics system.

 

So I am thinking of using azure blob search api and put metadata api's.

 

This is the first time I am working on API's. I wanted to know how to call API from Dynamics? 

 

Thank you.. 

 

 

Categories:
  • cchannon Profile Picture
    4,702 Super User 2025 Season 1 on 27 Apr 2021 at 13:06:45
    Re: How to call azure blob api from dynamics 365?

    So, first you need to define how you are calling. If you want to add a Search experience, then it is almost certainly client side. This is a problem, because calls executed client side potentially expose your authentication mechanism (assuming you won't be using the currently logged in user's AD token to authenticate to Blob) and also can run into Cross-Origin Scripting (CORS) issues that will block your traffic from going through.

     

    So, in order to protect your authentication and escape CORS issues, you will probably need to create an intermediary (An Azure Function, perhaps?) that is itself an API you can call, passing in the current user's AD token, and it then uses a connection string or whatever mechanism to hit the Blob.

     

    Alternatively, you can use a Release build PCF; because the script gets bundled your auth information is relatively secure, but in this case you still run the risk of a CORS exception, so you might need to create an intermediary anyway.

     

    Anyway, working with APIs is really easy (other than auth and CORS). You just pick your endpoint, pick your verb, and wrap up your message body and send it. There are about a million walkthroughs on basic API calls, including this handy reference to Blob APIs.  Also, I would recommend you check out Postman; it is a very convenient API testing tool that lets you rapidly try out API calls without needing to write code, then once you have a working call, Postman will give you the exact code to make that same code in the language of your choice (very nice!).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Loading started