Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +eUY4HlADUK9pvB5E+p4sg
Power Automate - Building Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 27 Mar 2025 22:42:09 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.
 
  • MM-27032222-0 Profile Picture
    6 on 28 Mar 2025 at 20:38:03
    Can't add Dynamic Content inside HTML code for Email Body in Power Automate flow.
    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,
     
  • VictorIvanidze Profile Picture
    12,133 on 28 Mar 2025 at 19:50:47
    Can't add Dynamic Content inside HTML code for Email Body in Power Automate flow.
    Create a Compose action before Send an email and try to create the HTML email body there.
  • MM-27032222-0 Profile Picture
    6 on 28 Mar 2025 at 17:34:51
    Can't add Dynamic Content inside HTML code for Email Body in Power Automate flow.
     
    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,
     
  • DJ_Jamba Profile Picture
    2,549 Super User 2025 Season 1 on 28 Mar 2025 at 11:51:15
    Can't add Dynamic Content inside HTML code for Email Body in Power Automate flow.
    Do you get the same error in the classic designer?
    New designer is buggy as hell!
  • MM-27032222-0 Profile Picture
    6 on 28 Mar 2025 at 03:14:28
    Can't add Dynamic Content inside HTML code for Email Body in Power Automate flow.
    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
  • Michael E. Gernaey Profile Picture
    37,846 Super User 2025 Season 1 on 28 Mar 2025 at 01:59:41
    Can't add Dynamic Content inside HTML code for Email Body in Power Automate flow.
     
    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,636 Most Valuable Professional

Leaderboard
Loading started