Adventures with Power Apps: Adding Attachments from OneDrive

I wanted to see what the attachment process looked like for adding attachments to a Dataverse entity from my OneDrive account on an iPhone.

I already had the Power Apps apps and the OneDrive app installed on my phone.

I created a Canvas App for the Contacts entity in the Dataverse.

I added an Attachment control on the Contact Edit Screen so I could upload attachments.

Here is what I discovered.

Figure 1 – Screenshots

1 – Canvas App that allows attachments to be added for a Contact Entity.

2 – I clicked Attach file on an iPhone and was prompted with a few actions for adding the attachment.

3 – I clicked Browse from the prompted actions and was prompted with available files, with the default display showing Recent files.

4 – I clicked on Browse and was displayed, by default, my files in iCloud.

Hmmmm … no option to get files from OneDrive. 🤔

In frustration I clicked on Browse again, not sure why … and what do you know?

Figure 2 – Screenshots

5 – Clicking the Browse button again displayed the Locations screen.

6 – Spotting the OneDrive option in there, I clicked on it and was prompted to Turn On “OneDrive”.

7 – With OneDrive connected I was able to browse files and folders.

8 – Drilling down into a folder I was able to select a file to add as an attachment to my Contact Entity.

Not the most user intuitive, but it works!

Try it for yourself!

You can download the sample solution at https://1drv.ms/u/s!Ah6xh5d0qbNokb8Aw-zUgz-zRczR6g?e=flxfIm.


Discover more from Matt Ruma

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *