cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarkH1
Advocate I
Advocate I

How to add : before and after string

Hello,

I need to write an expression that adds a : before and after a string. How can I do this?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

As I said, if it's a dynamic content remove the apostrophes. And also the @ shouldn't be there.

concat(':',outputs('Emoji_name'),':')

 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

5 REPLIES 5
tom_riha
Super User II
Super User II

Hello @MarkH1 ,

use the concat(...) expression. If the text is in a dynamic content, don't use the apostrophes around it.

concat(':','text',':')

 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
MarkH1
Advocate I
Advocate I

Let me try this out soon and revert. Thanks!

MarkH1
Advocate I
Advocate I

It works well with the example and static text but when I insert dynamic content, the expression becomes invalid

For example -> 

concat(':','@outputs('Emoji_name')',':')

As I said, if it's a dynamic content remove the apostrophes. And also the @ shouldn't be there.

concat(':',outputs('Emoji_name'),':')

 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

MarkH1
Advocate I
Advocate I

Let me check and revert. Thank you!

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (40,467)