Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics

Loading started