Skip to main content

Notifications

Community site session details

Community site session details

Session Id : IfOYZWqAfhyZ57+8jxlAMF
Power Automate - General Discussion
Answered

Power Automate Stripping special characters

Like (0) ShareShare
ReportReport
Posted on 16 Mar 2022 15:20:00 by 20

I have a user who is building a flow to save email messages.  He would like to be able to strip any special characters from the subject line of an email before saving the message.

 

I believe an expression can be used to replace special characters with underline but I am not sure what that expression would look like.

 

Any assistance is appreciated

  • Verified answer
    mattias1172 Profile Picture
    385 on 16 Mar 2022 at 19:35:51
    Re: Power Automate Stripping special characters

    If its the same 1 or 2 special characters, you can use the replace() expression. You'd need a replace for each character so it would not be ideal for a lot of them. 

     

    The syntax is: replace(text: string, oldText: string, newText: string)

     

    Example: replace('!mytext','!','')

    This example removes the ! since there is nothing in the new text section. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard
Loading complete