web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Download Image from Ga...
Power Apps
Answered

Download Image from Gallery

(1) ShareShare
ReportReport
Posted on by 453
Hello,
 
I was wondering if it would be possible to add a download button into my gallery for each item, then when the button is selected it would download the Image from that Item.
 
I'm using dataverse, and the column is Image type.
 
Another alternative is I have a search text box and some combo boxes which filter and narrow down the items displayed. Would it also be possible to have a download all button, which then downloads all the images from the items that currently appear in the gallery.
 
A third alternative is a check box is ticked in each item, then the download button only downloads the images from the items that have been checked.
 
Thanks,
Josh
Categories:
I have the same question (0)
  • MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    Matthew Devaney blog describes how to download from the column file
     
    For Image Download
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
    Hello @Jap11,
     
    Yes, this is possible. Since your images are stored in Dataverse, you can add a Download button in the gallery and use the Download() function with the Dataverse Web API URL.
     
    Your OnSelect of Download Icon could look something like this:
    Download("https://<environmentURL>/api/data/v9.2/<table_name>(" & ThisItem.<recordID> & ")/<image_column>/$value")

    When the user clicks the button, the image will download from that record.

    For detailed step-by-step instructions, please refer to the blog below:
    https://www.matthewdevaney.com/power-apps-download-file-from-dataverse-file-column/

     

    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!
     
  • Suggested answer
    DP_Prabh Profile Picture
    381 on at
    Hi @Jap11,

    Yes, it is possible to download an image stored in a Dataverse Image column from a Canvas App using Download() function in Power Apps.

    example: Add a button and set its OnSelect property:
    Download(
    "https://yourorg.crm.dynamics.com/Image/download.aspx?Entity=account&Attribute=crc2a_image&Id=" & ThisItem.accountid
    )
    

    What this does

    Entity → the logical name of the Dataverse table

    Attribute → the logical name of the Image column

    Id → the GUID of the record that contains the image

    When the button is clicked, the app opens the Dataverse image endpoint and the image loads in the browser, allowing the user to download it.

    Microsoft documentation:
    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/image-column-data

    I hope this works for you!

  • Jap11 Profile Picture
    453 on at
    Hi @DP_Prabh - thanks for you reply, this seems like it will be the easiest solution however I'm having some issues. 
     
    I have my org URL, but I'm not certain I'm using the correct Entity, Attribute and ID.
     
    For Entity, would it be 'Test_Table' or cr6d3_testtable ?
     
    Same for Attribute, would it be 'Image of Item' or cr6d3_imageofitem ?
     
    Then finally for the ID, GUID of the record that contains the item, how do i get this? 
     
    This seems the only logical option when i type in
     
    I end up with this error anyway at the moment
     
    Thanks!
  • Verified answer
    DP_Prabh Profile Picture
    381 on at
    Hi @Jap11,

    Dataverse uses the logical names, not the display names.

    Entity: Use the logical name of the table, so in your case it should be:
    cr6d3_testtable (not Test_Table)

    Attribute: Same rule applies to the image column — use the logical name:
    cr6d3_imageofitem (not Image of Item)

    Record ID (GUID)
    This should be the primary key of the record that contains the image. In a Canvas App you can usually access it directly from the gallery/form record. For example:

    ThisItem.cr6d3_testtableid

    So the full example would look something like:

    Download(
        "https://yourorg.crm.dynamics.com/Image/download.aspx?Entity=cr6d3_testtable&Attribute=cr6d3_imageofitem&Id=" 
        & ThisItem.cr6d3_testtableid
    )
    
    I hope this works!

    If you're still getting an error, share the complete code and error message that would help in resolving the error.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard