Requirement: Replace string using compose action expression in Power Automate
Click on +Create from Home page. select Instant cloud flow, provide Name to the flow, select Manually trigger flow and click on Create button.
Add Initialize variable action to the flow. Provide Name, Type as String and Value, as shown in below:
Add one more action to the flow to change the value of the string use the expression in below:
replace(variables('varString'),'Pavani Kasturi','Pavithra')
![](http://rishandigital.com/wp-content/uploads/2023/04/image-485.png)
Now Save and Run the flow to see the string is replaced from ‘Pavani Kasturi’ to ‘Pavithra’
![](http://rishandigital.com/wp-content/uploads/2023/04/image-486.png)