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 da...
Power Apps
Answered

Download image from dataverse from power app

(2) ShareShare
ReportReport
Posted on by 453
Hello,
 
I'm following the below user guide on how to download a file from dataverse via power automate in a power app.
 
I've built the flow but really struggling with step 5. I was wondering if anyone could possibly assist me.
 
Canvas Apps: Complete Guide

Download(HTTP_GET_URL_FROM_POWER_AUTOMATE) - is this my flow name i.e. i used DownloadFile.
 
I then have the guid, i copied this from my first action in power automate flow assuming thats correct.
 
 
Then i can't make out from the screenshot what i use after the ThisItem. - what do i add here? The formula in the screenshot used looks very different to what they have suggested to add.
 
Any help appreciated.
 
Thanks
Categories:
I have the same question (0)
  • timl Profile Picture
    37,214 Super User 2026 Season 1 on at
    Hi @Jap11
     
    Looking at that article, ThisItem.XXX would be used to specify the primary key of the record that stores the attachment.
     
    It would be necessary to place the button on a form or gallery that's bound to the table in order for the ThisItem identifier to be valid.
     
    Typically, the name of your table returns the ID. So the following should work. 
     
    Download(Substitute(HTTP_GET_URL_FROM_POWER_AUTOMATE, “{guid}”,ThisItem.YourTableName)
     
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
     

    From that guide, the key point is that ThisItem.XXX refers to the record ID from the gallery or form you’re using — so the button needs to be inside a gallery or form that’s connected to your Dataverse table.

    In most cases, you should replace {guid} with the record’s primary key from your table, something like:

    ThisItem.'Your Table Name'

    So your formula becomes:

    Download(Substitute(HTTP_GET_URL_FROM_POWER_AUTOMATE, "{guid}", ThisItem.'YourTableName'))

    If you’re unsure what to use after ThisItem., it should be the primary ID column of your Dataverse table (usually something like YourTableNameid or the table’s name field).

     
    Vishnu WR
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 
  • MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    There is an article from the Matthew Devaney how to Download File From Dataverse File Column. 
     
    Without power automate we can able to retrieve the file directly from the dataverse just check does it helps.
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Jap11 Profile Picture
    453 on at
    Hi @timl and @Vish WR - thank you both for you response.
     
    Apologies I'm still a little lost - I have added the button into a gallery already, so then will i be using the table name or the primary column after ThisItem. ?  My table name is for example 'Test Data' and my primary column is named 'Item ID Number'.
     
     
    I can see both of these options when i enter ThisItem. but i still get an error.
     
     
    I'm also getting an error with this part "HTTP_GET_URL_FROM_POWER_AUTOMATE," - do i replace this with the name of my flow, in that case it won't let me add it to power automate, it says no instant cloud flows.
     
    Name isn't valid. 'HTTP_GET_URL_FROM_POWER_AUTOMATE' isn't recognized.
     
     
    I'm also not sure if i have pasted in the guid correctly, do i past it within "{ here }" or " here ". The guide says to take the guid from the first action in power automate 
     
     
  • Vish WR Profile Picture
    3,748 on at
     
     
    yes its a placeholder you should replace with the actual flow name 
     
    Did you follow this guide?
  • Jap11 Profile Picture
    453 on at
    @Vish WR yeah i already have followed that guide and it does work great but there is a authentication issue that i can't get around when first downloading a file.
     
    When i first download the image, i get 401.1 – Logon credentials were not recognised error. So i then have to strip back the url to just "
    https://*********.crm11.dynamics.com/", it logs me in and authenticates, then i can return back to my app and download files fine.
     
    It's not a major issue, as it's a few seconds extra work to download an image in the first instance so i wanted to see if there was another solution and I'm also not sure how it would work for a standard business user, would they have issues accessing that stripped back url due to permissions I don't know.
     
    Thanks,
    Josh
  • Verified answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    Yes you are correct but this is expected system behavior. We are using the API which requires an access token to  access the URL. So whenever  the user hits the env URL first, the access token will be generated automatically, so the Download function will work.
     
    If you are constraint with loading time i am suggesting an alternate option to check Download Dataverse attachments from a Canvas Power App.
     
    The same issue has been raised in the past and this solution is worked on the same - Accessing file stored in Dataverse via Download() in Canvas app throws 401 error
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.

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