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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Combine multiple array...
Power Automate
Unanswered

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.
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,329 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard