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

Community site session details

Session Id : aNCcK8zNA5EEG7wVW3ZcQE
Power Apps - Building Power Apps
Unanswered

Using the function Download() in sequence

Like (1) ShareShare
ReportReport
Posted on 7 Aug 2023 14:24:02 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 🙂 

I have the same question (0)
  • IcemanY15 Profile Picture
    33 on 08 Aug 2023 at 09:46:17
    Re: Using the function Download() in sequence

    i'll try it and publish here the result ! 

  • KeithAtherton Profile Picture
    3,690 Most Valuable Professional on 08 Aug 2023 at 08:52:56
    Re: Using the function Download() in sequence

    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 08 Aug 2023 at 08:46:07
    Re: Using the function Download() in sequence

    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,690 Most Valuable Professional on 08 Aug 2023 at 08:31:01
    Re: Using the function Download() in sequence

    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 08 Aug 2023 at 08:19:16
    Re: Using the function Download() in sequence

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

  • KeithAtherton Profile Picture
    3,690 Most Valuable Professional on 08 Aug 2023 at 08:04:15
    Re: Using the function Download() in sequence

    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 08 Aug 2023 at 07:15:44
    Re: Using the function Download() in sequence

    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,690 Most Valuable Professional on 07 Aug 2023 at 14:39:27
    Re: Using the function Download() in sequence

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 752 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 472

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 358 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete