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 / Can't add Dynamic Cont...
Power Automate
Unanswered

Can't add Dynamic Content inside HTML code for Email Body in Power Automate flow.

(0) ShareShare
ReportReport
Posted on by 6
Greetings,
 
My email body has table and images. I converted the text, tables and images to HTML code and pasted into the 'body' section of 'Send an email (V2)' action node. I can 'save' the flow until this stage. When I add a Dynamic Content (/) inside the HTML body, the flow doesn't save the change, rather throws an error "The input parameter(s) of operation 'Apply_to_each' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'Apply_to_each'.
 
The following screenshot shows the Dynamic Content "ORG_CODE" can easily be saved in the "Subject" field of the email, but when I want to insert the same Dynamic Content inside the email "Body" (which is all HTML code), the error message appears. I tried many options and searched for a solution in almost every related topic found online, but no luck yet.
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,493 Super User 2025 Season 2 on at
     
    Hi, Is the property (both of them) from the Apply to Each or any chance you accidentally applied the one from the List Rows inside the body?
     
    Not sure otherwise, how that would cause your Apply to Each to fail, never seen that.
  • MM-27032222-0 Profile Picture
    6 on at
    Hi Michael,
     
    Thanks a lot for your prompt response. I used the Dynamic Content (i.e., "ORG_CODE") from "List rows present in a Table" node. This is the place where I have my required Dynamic items to pull from, as shown in the Screenshot below. It works fine in the "Subject" field, but not inside the "Body", specifically inside the HTML code.
     
    Sincerely,
    Moonem
  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at
    Do you get the same error in the classic designer?
    New designer is buggy as hell!
  • MM-27032222-0 Profile Picture
    6 on at
     
    Thanks for the clue. I tried in 'Classic designer' also, it's the same when I add any Dynamic Content inside the HTML body, as shown in following screenshot,
     
  • VictorIvanidze Profile Picture
    13,073 on at
    Create a Compose action before Send an email and try to create the HTML email body there.
  • MM-27032222-0 Profile Picture
    6 on at
    Hi @VictorIvanidze,
     
    Thanks a lot for your suggestions. In fact, I tried using the "Compose" action node before. After your suggestion, I tried again, and it shows the same error message as shown in the screenshot below,
     

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard