cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Edsicle
Frequent Visitor

Changing the value of a record in dynamics by parsing text

Hello,

 

I am new to power automate and a task I undertook seemed easy at first since I know how to do it in JavaScript but I cannot seem to figure it out with a flow. I have a table in MS Dynamics that gets populated with partially the wrong information from a different team. I need to edit that information to remove certain text from the string and replace it with different text. I got as far as triggering the Flow on create and then finding where in the string the text is but I am very confused at how to use variables in Power Automate, it's not at all what I'm used to. So in short, I need to change a substring in a text field to a different substring on create. Any advice or direction to documentation would be helpful, Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @Edsicle 

 

After the trigger add a compose action step. Then map the dynamic property value from your trigger step which you want to replace. Next add another compose action step. Click the expression tab and type replace() expression. Set the above output compose and replace string details. Next step update row using the above id and map the output from the previous expression step compose where you set the replace().

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

2 REPLIES 2
abm
Super User
Super User

Hi @Edsicle 

 

After the trigger add a compose action step. Then map the dynamic property value from your trigger step which you want to replace. Next add another compose action step. Click the expression tab and type replace() expression. Set the above output compose and replace string details. Next step update row using the above id and map the output from the previous expression step compose where you set the replace().

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Edsicle
Frequent Visitor

That worked perfectly, thank you! 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,582)