cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Penngineer
Helper I
Helper I

Using Replace Expression.

The user selects the the "Departments" from a multi-select list input.  I am taking the string of departments and want to break it up into separate lines in the approval email.  It is showing up as the code rather than the output.  So, I am thinking my input in Compose 2 is wrong.  Help!

 

Penngineer_6-1625762476258.png

 

Penngineer_7-1625762619773.png

 

 

Penngineer_5-1625762397631.png

 

 

 

 

1 REPLY 1
ekarim2020
Super User
Super User

This needs to be entered as an expression into the expression builder for the replace function to work, or it will be read as plain text:

ekarim2020_0-1625776634467.png

Example:

ekarim2020_4-1625777109732.png

ekarim2020_5-1625777137621.png

Something like:

 

replace(outputs('Compose'),variables('varDepartments'),'<br>')

 

entered in to the expression builder

see:  Getting Started with Power Automate, and Introduction to Expressions and Learn Power Automate Expressions for more info.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (2,178)