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
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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,235)