Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Problem with Compose and replace function

(0) ShareShare
ReportReport
Posted on by 28

I have a flow that transfers the contents of a Form to a PDF file. The template is an .html page which contains 3 markers

{firstname}
{surname}
{address}

using 3 Compose functions - replace in the flow I replace the markers with the content of my Form unfortunately however in the end it only replaces me

{address}

as if the script forgets that it has performed the previous action.

I followed this tutorial

https://www.youtube.com/watch?v=2PnzyQNMp3o

but nothing, it doesn't work for me
Thanks for your cooperation

  • AndreaC Profile Picture
    28 on at
    Re: Problem with Compose and replace function

    ok it's as strictly as you say, it was my mistake thanks for letting me know. Now it works fine but I have another problem but I will do another post for it.
    Thanks

  • Verified answer
    Pstork1 Profile Picture
    66,015 Most Valuable Professional on at
    Re: Problem with Compose and replace function

    Double check that you are using the results of the previous Compose in each subsequent Compose.

    1. Compose #1 replaces the text in the HTML
    2. Compose #2 replaces the text in Compose #1 Output
    3. Compose #3 replaces the text in Compose #2 Output

    I suspect that you aren't using the previous output each time so you are only getting the last Replace.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow