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 / Replace with dynamic c...
Power Automate
Unanswered

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,241 Super User 2025 Season 2 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
    12,966 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard