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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (89,223)