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 Automate / Combine multiple array...
Power Automate
Answered

Combine multiple arrays as attachments in a Send an email (v2) action

(4) ShareShare
ReportReport
Posted on by 18
I would like to combine 2 arrays in the attachments section of a Send an Email (V2) action in my flow.  The first array is "varPDF" which is a word document that is saved on OneDrive and is convert to PDF. The word document is populate from a template and pulls information from a SharePoint List item. The second array is "varAttachments" where it loops through the record that was selected in a PowerApps gallery and attaches all images to the array.
 
The flow works when I attach just a single array to the Send an Email (V2) action, but I need to attach both arrays so the PDF and all attachments from the record are in the email.
 
 
This is the error I get when attaching both arrays. See error message below.
See attached for more information from my flow.
 
Flow_part3.PNG
Flow_part2.PNG
Flow_part1.PNG
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,969 Moderator on at
    Hi

    The message is pretty clear. That the Value you are providing is not an Array its a string. So please share the full value of varPDF and varAttachments and we can help you :-)
     
    Thanks!
  • Verified answer
    NC-21080606-0 Profile Picture
    18 on at
    I figured it out!
     
    All I did was add a Compose action with a union function. 
     
    union(variables('varPDF'),variables('varAttachments'))
     
    Then in the attachments section of the email I inputted the outputs of the Compose action.
     
    Hope this helps someone!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard