web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Replace with dynamic c...
Power Automate
Answered

Replace with dynamic content

(0) ShareShare
ReportReport
Posted on by 69
I'm trying to remove spaces from a string using the replace function, below.
 
Could someone explain how to add dynamic content to this please.  I want to replace the Test ABM 123 with this content - 
outputs('Get_response_details')?['body/r31cbcf1f60b442d38f94f4184b9adc1a']
 
Thank you.
 
replace('Test ABC 123',' ', '')
Categories:
I have the same question (0)
  • Verified answer
    rzaneti Profile Picture
    4,483 Super User 2026 Season 1 on at
    Hi,
     
    In the provided expression, you are simply removing any blank spaces from the text "Test ABC 123". If you want an expression to remove the value dynamically corresponding to your Form response from the text "Test ABC 123", you can use this expression: replace('Test ABC 123',outputs('Get_response_details')?['body/r31cbcf1f60b442d38f94f4184b9adc1a'], '')
     
    Another option: when you are typing the expression, set your mouse cursor where you want to include the dynamic content (in yellow below) and click in the Dynamic content tab (in red). It will display the list of dynamic contents without leaving the expression. You can then click in any dynamic contents to add it to the expression:
     
     
    This is what happens after clicking in the dynamic content:
     
    For further learning about this topic, refer to the following content:
    - Dynamic contents in Power Automate (Video): https://youtu.be/jpledJfaEPQ
     
    Let me know if it works for you or if you need any additional help!

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Accepted Answer.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/
    https://www.linkedin.com/in/raphael-haus-zaneti/
  • Suggested answer
    David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at
    You could also use the trim expression: Power Automate: trim function - Manuel T. Gomes. I think that would be more efficient for your use case. Examples of how to use this are in the link provided.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard