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!
Solved! Go to Solution.
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
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
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?
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
197 | |
171 | |
61 | |
32 | |
31 |
User | Count |
---|---|
336 | |
270 | |
104 | |
72 | |
56 |