cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JanV
Level: Powered On

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
Community Support Team
Community Support Team

Re: Show attachments from entity in offline application

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
Community Support Team
Community Support Team

Re: Show attachments from entity in offline application

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

JanV
Level: Powered On

Re: Show attachments from entity in offline application

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,832)