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

How to add multiple variables while sending email

(1) ShareShare
ReportReport
Posted on by 819 Super User 2025 Season 2
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,195 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

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 507 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 267 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard