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 / Cannot pass text varia...
Power Automate
Answered

Cannot pass text variable into Outlook account

(0) ShareShare
ReportReport
Posted on by 13

I'm trying to pass a text value from a variable into the account text box section of send email message through outlook. The data file name matches the account but PAD throws an error and says it cannot find the account.  However, I can hardcode the value into the account text box and it works fine.  Even more strange, I can pass the variable value into the "to:" text box and it works fine, so long as I have hardcoded the account section with the actual account name (no variable).

Categories:
  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @Zairs 

     

    Can you please confirm that are you using PAD or PA web?

    Please share the screenshot for more understanding on your issue?

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

     

  • Zairs Profile Picture
    13 on at

    Srini,

    I'm using PAD.  You'll see a variable %PersonalEmail%.  I store the user's email address into it by running a command.  Outlook will not accept the variable but will accept an address I type in manually.  It makes no sense.  The error that is kicked back says the account doesn't exist...yet it does.  Here are a couple of screen shots....

    PAD Screenshot.png
    Mail Error.png
  • Verified answer
    Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @Zairs 

     

    I tried if I get the same issue, but not able to replicate your error

     

    Srini84_1-1686376937344.png

     

    Above is successful, but I suspect that there was some whitespaces in the email id as you are passing those as variables, As you said that if you hardcode the value then you are not getting the issue, so the only way I think is to put trim Text activity and pass the PersonalEmailID variable and pass the Trimmed Text variable to To field in Outlook action

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • Zairs Profile Picture
    13 on at

    Srini, you're a genius!  Trimming the text was the answer, and it worked the instant I ran the flow!  Thanks so much!

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard