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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,035)