
Announcements
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 setup
The Schedule 2 variable iteration
The Schedule 1
The bottom of the Schedule 1 where I plug in the Compose Output from the For Each Schedule 2
finally, creating the HTML File
the problematic JSON in the HTML
more problematic JSON in the HTML
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.