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 / Set string variable to...
Power Automate
Unanswered

Set string variable to list column error: Input parameter of operation contains invalid expression

(2) ShareShare
ReportReport
Posted on by 195
Simplest of actions.... Had a string type variable Initialized then Set to a string with a bunch of html tags and with dynamic list column value inserted in between.

 
Flow gives the error upon save "The input parameter(s) of operation 'Set_Email_Body_variable' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'Set_Email_Body_variable'."
 
Tried with 
string(outputs('Get_item')?['body/ReferenceNo'])
doesn't budge. will appreciate some quick pointers! Thanks!
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at
    I would try using a compose action rather than a variable based on what you are trying to set the variable to. You can then use the output of the compose action wherever you were using the variable.

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