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 / 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,963 Moderator 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 Moderator 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,081 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

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard