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 / Appending html to html...
Power Automate
Unanswered

Appending html to html in compose, ending up with JSON leftovers

(0) ShareShare
ReportReport
Posted on by

I'm merging several MS List into one html play to display in MS Teams Approvals. Part of the HTML is a single iteration "Schedule 1." The other part "Schedule 2" is variable in the number of instances (could be 1, could be 8). Currently, I am using a For Each to move through the Schedule 2 dynamically via a Compose and then plugging the results into a Schedule 1 Compose, and then creating a file. The problem is that the JSON from the Schedule 2 For Each ends up in the HTML of the Schedule 1 and thus in the HTML page at the end. 
The basic setupThe basic setup

 

The Schedule 2 variable iterationThe Schedule 2 variable iteration

 

The Schedule 1The Schedule 1

 

The bottom of the Schedule 1 where I plug in the Compose Output from the For Each Schedule 2The bottom of the Schedule 1 where I plug in the Compose Output from the For Each Schedule 2

 

finally, creating the HTML Filefinally, creating the HTML File

 

the problematic JSON in the HTMLthe problematic JSON in the HTML

 

more problematic JSON in the HTMLmore problematic JSON in the HTML

 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Euripides0314 

     

    Pls try replacing compose with variable and use "Set variable" action to assign value inside apply to each block.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard