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 / How to add multiple va...
Power Automate
Answered

How to add multiple variables while sending email

(1) ShareShare
ReportReport
Posted on by 819 Moderator
Good morning everyone,
 
My flow is having two variables, either I can add Attachments or Word variable once in email Attachment section. How I can add both. 
 
(I tried adding both separately , it is working however I need both variables to be send in same email.
 
___________________________________________________________________________________________________________________________________________________________________________________________________----
Error - Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'emailMessage' validation failed in workflow operation 'Send_an_email_(V2)': The parameter with value '" @{variables('Word')}@{variables('Attachments')}"' in path 'emailMessage/Attachments' with type/format 'String' is not convertible to type/format 'Array'.'.
 
 
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,844 Most Valuable Professional on at
     
    The attachments field expects one array, you are adding two.
     
    You can merge the two by using an union function.
     
    Below is an example
    union(variables('Attachments'),variables('Word'))
     
     
     

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 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard