web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 19ziJrwPYoTF4FYVOdq8eI
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 Moderator 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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics