cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JanV
Frequent Visitor

Show attachments from entity in offline application

Hi all,

 

I'm having difficulties to show attachments in an offline application.

I have a 'Products' entity for which I enabled attachments. I am able to show these in my PowerApp when I use a form to display those.

Now, my application needs to work offline. So I used the Save/Load data to cache my datasource into a local collection:

If(Connection.Connected,ClearCollect(ProductCollection,Products);SaveData(ProductCollection,"LocalProducts"),LoadData(ProductCollection,"LocalProducts",true))

This works for all my entity fields but not for my attachments. Is this possible?

If so, is there a limit on the size of the collection that can be stored locally?

 

Idea of the app is that we create an offline application that can be used at faires to showcase the products and easily show presentations/certification documents/etc...

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @JanV ,

 

It should be possible to collect Attachment as local data in PowerApps.

For example, you may try:

ClearCollect(Attachments, First(Entity1).'{Attachments}')

But the attachments can't be saved directly with the list data, when trying to collect the list data with ClearCollect function per my testing.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-monli-msft
Community Support
Community Support

Hi @JanV ,

 

It should be possible to collect Attachment as local data in PowerApps.

For example, you may try:

ClearCollect(Attachments, First(Entity1).'{Attachments}')

But the attachments can't be saved directly with the list data, when trying to collect the list data with ClearCollect function per my testing.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks for the reply!

 

Using this method I can see all attachments offline (so already one step further) but I'm unable to open them.

I'm getting redirected to the URI from that attachment and that is online.

I've tried with the data in a SharePoint list and CDS.

 

Any thoughts on this one?

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,055)