Azure Integration, Business Applications, Common Data Service, Power Platform

Azure Storage integration for Power Apps portals

To answer the question Why? I say we run into some limitations with SharePoint integration.

And now we are trying to explore other options. Let’s get started!

Enable Azure Storage

This is a great blog post here: Want to leverage Azure storage for your documents in PowerApps/ Dynamics 365 portals instead of Notes? Check this out – Debajit’s Power Apps & Dynamics 365 Blog

It’s got some extra info which is missing in docs.

Microsoft docs: Enable Azure storage – Power Apps

Things to pay attention to while following the steps:There are two types of settings required for a portal: Settings and Site Settings. Pay attention.

Create a container in the Azure storage you created. Microsoft docs are missing this but it’s definitely required. It doesn’t get created automatically you have to create it on Azure portal.

There extra portal settings which may or may not be required. Doesn’t hurt to set them up:

Site Setting 3 Name: HTTP/Access-Control-Allow-Credentials Value: true

Site Setting 4 Name: HTTP/Access-Control-Allow-Headers Value: *

Site Setting 5 Name: HTTP/Access-Control-Allow-Methods Value: GET, PUT, DELETE, HEAD, POST

Site Setting 6 Name: HTTP/Access-Control-Allow-Origin Value: <your crm url without any trailing slash>

Site Setting 7 Name: HTTP/Access-Control-Expose-Headers Value: *

Site Setting 8 Name: HTTP/Access-Control-Max-Age Value: 300 (it’s value in seconds, you can specify 200/ 100 as well)

Add the Azure Storage web resource to a form

Microsoft docs: Add Azure storage web resource to a form – Power Apps

I haven’t found any tricks here. It just works if you follow the steps.

Configure notes as attachments for basic and advanced forms

Microsoft docs: Set up notes as attachments for basic and advanced forms – Power Apps

Here… two main things on top of all these micro and macro steps you have to perform:

  1. Make sure you added the permissions to the Web role you use. I know it’s in the list. Still.
  2. It’s tricky. For the step:
The old interface Activities Tab Properties

It doesn’t look like this on the classic UI. Also, you can’t do it via new UI.

This is how it looks like in classic:

Classic UI but new options Activities Tab Properties

And you go to the second tab and select Notes from there.

Classic UI but new options Activities Tab Properties – Notes

Now you all set to use the OTB Azure Storage integration with your portal documents.

But what if you want to use the same integration to store your Dynamics 365 documents which are not uploaded via the portal?

To be continued…

1 thought on “Azure Storage integration for Power Apps portals”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s