I am creating a flow that extracts answers from a microsoft form, creates a OneNote page using a pre-defined template and then populates the page with the information from the flow.
I am using the output of "get page content" to get the html code of the OneNote page template and in a following step I use replace to insert data extracted from the form.
Below an example of the Compose code (replace) that populate the Title of the newly created page:
Compose (populate title)>
replace(body('Get_page_content'), '<title>Template -REPLACE WITH TICKET NAME-</title>', concat('<title>', outputs('Get_Page_Title'), '</title>')
This works fine and it is used as input for "Create page in a section"
To add more data, I send the output of Compose (populate title) to another Compose with same logic but different data. Then I send the output of this compose to "Create page in a section"
The result however is not what I expected. The flow only adds the second compose and the first one is ignored (I get an untitled page).
What am I doing wrong? I wanted to apply the same logic to populate all the fields in the OneNote template but there is clearly an error.
Thanks!