cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
consultantlk
Helper II
Helper II

CDS Attachments in a Gallery

Hi Everyone, I am wondering if it is possible to display cds attachments with .docx and .pdf files in a gallery and allow users to download those files in their computers? If not a cds entity, should we store the files in azure blob storage or a share point document library to achieve that? Please let me know. Appreciate the help!

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

Hi @consultantlk ,

 

The attachment of CDS entity only returns file as base 64 string format and a filename, It's not the actual URL to a file that the Download function expects.

Please change to store the file to SharePoint Library, which is a better choice to implement DOWNLOAD feature.

Set Gallery.OnSelect property to Download(ThisItem.'Link to item')

Hope this helps.

Sik

View solution in original post

1 REPLY 1
v-siky-msft
Community Support
Community Support

Hi @consultantlk ,

 

The attachment of CDS entity only returns file as base 64 string format and a filename, It's not the actual URL to a file that the Download function expects.

Please change to store the file to SharePoint Library, which is a better choice to implement DOWNLOAD feature.

Set Gallery.OnSelect property to Download(ThisItem.'Link to item')

Hope this helps.

Sik

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,671)