cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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

Highlighted
Frequent Visitor

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,906)