Skip to main content

Notifications

Power Automate - General Discussion
Answered

Power Automate Stripping special characters

(0) ShareShare
ReportReport
Posted on 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
    mattias1172 385 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard