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 / Using the function Dow...
Power Apps
Unanswered

Using the function Download() in sequence

(1) ShareShare
ReportReport
Posted on by 33

HI Everybody,

 

look for a litlle bit of help. 

 

I have a SP List with an 'Attachment' column and some pdf or jpeg stacked there. 

 

I want to use the function Download() to.. obviously download these once for all. 

I tried this :

 

ForAll(coll_Temp;Download(First(ThisRecord).'Attachements')))

 It didn't work.

First of all, is Download() supported by ForAll()?

and if not, what is the better way to reach my purpose?  

 

Thank you for your time 🙂 

Categories:
I have the same question (0)
  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @IcemanY15,

     

    I would expect the ForAll / Download combination to work OK. Did the code give errors or just do nothing?

     

    Also, are attachments downloaded OK if you try Download without using ForAll? For example, code similar to the following:

    Download(<Attachment #1 URL>);
    Download(<Attachment #2 URL>);
    Download(<Attachment #3 URL>);

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • IcemanY15 Profile Picture
    33 on at

    Hi, thanks for replying 🙂 

     

    I use this code with a button at the end of rows of gallery  :

     

    Download(First(ThisItem.'Attachments').AbsoluteUri

    It does the job one by one but when i tried the previous one with the ForAll() i've got this error : 

    The specified column isn't reachable in this context

     

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Thanks for the info. What happens if you swap "ThisItem" with "ThisRecord"?


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • IcemanY15 Profile Picture
    33 on at

    Sorry, i actually use "ThisRecord" and i get this error. 

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Does the code work if you remove "ThisRecord."?

    Sorry, I'm limited in how much I can help remotely.


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • IcemanY15 Profile Picture
    33 on at

    If i try without "thisrecord", the completion doesn't show me the fields 'attachments' neither other fields from the table. And if I force it, it's still not working.

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    I would suggest trying workarounds although they would likely require trial-and-error to see if they work or not.

     

    For example, try saving all values to a new collection (say, colAttachments) then use the ForAll function on the new data collection.


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • IcemanY15 Profile Picture
    33 on at

    i'll try it and publish here the result ! 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard