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 / Cannot collect all ima...
Power Apps
Unanswered

Cannot collect all images from gallery and send them to flow as attachments

(0) ShareShare
ReportReport
Posted on by 53

Hi,

 

I am creating a expenses app and I am have 1 final issue.

I have a button to submit the expense and I attached a PowerAutomate flow to it.

Everything works well but I want to include all the images in the gallery as attachments in the approval email.

I tried collecting one image in a collection and that works.

 

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • Ousselg Profile Picture
    53 on at

    If I use multiple pictures it doesn't work.

     

     I tried this:

     

    Clear(Images);
    ForAll(Gallery2.AllItems,Collect(Images,{Value: Receipt.Full}));Concat(Images,Value);
    Set(Imagesvar,Concat(Images,Value));
    'Approval-flow-Receipts'.Run(BrowseGallery1.Selected.Id,MyManager.Mail,Imagesvar)

     

    It doesn't show any errors, but when pressing the button it says there is an error.

     

    Ousselg_0-1666275431131.png

     

  • Ousselg Profile Picture
    53 on at

    I looked everywhere on the internet and but no one seems to know how.

    I want to include the attached receipts to a approval mail/flow. If I select one image it comes in the attachments, but when trying to add a collection or varbase64 it wont work. I have seen some videos about multiple attachments but those scenarios are when the files/attachments are all in one list. When I use the get content/get attachments scenario the files are not included there (because the images are stored in a list called "expenses receipts" and not in the "expenses" list. Because we have 2 lists and images that have the same receipt item name it's impossible for me to figure out how to do it. 

     

    This is list a

    Ousselg_1-1666363874983.png

     

     

    and this is list b

     

    Ousselg_0-1666363831622.png

     

     

     

    I tried this methode as well:

     

    Ousselg_2-1666364073014.png

     

     

    But the item is on one list and the receipts are on another one, I can not get the content with this solution.

    This is the submit screen with explanations:

    Ousselg_4-1666364661872.png

     

    This is the command that works (with one image only):

     

    Approval-flow-ReceiptsV2'.Run(BrowseGallery1.Selected.Id,MyManager.Mail,Gallery2.Selected.Receipt.Full,Gallery2.Selected.'File name with extension')

     

     

    I create apps for non profit purposes and would love if you could help me on this issue.

     

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard