web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Need to remove spceial character from subject of the email to create sharepoint folder.

(0) ShareShare
ReportReport
Posted on by 1

Hi Guys,

 

 

I have built a flow which trigerred by email to create planner task and saves attachments onto sharepoint. It works fine until it receives special character in email subject like Re:. Because sharepoint cannot create a folder with a name which contains those characters. Is there any way we can remove those characters from subject before it creates folder in sharepoint? Or is there any best practices to who has experienced same issue as mine?

{
  "status": 400,
  "message": "The file or folder name contains characters that are not permitted.  Please use a different name.\r\nclientRequestId:
}
I have the same question (0)
  • Verified answer
    v-liwei-msft Profile Picture
    on at
    Re: Need to remove spceial character from subject of the email to create sharepoint folder.

    Hi @Temka 

     

    I have made a test for your reference:

    1.

    vliweimsft_0-1677742236008.png

    createArray('.','@','ß','²','³','µ','´','°','^','=','(',')','&','$','§', '~','#','%','*',':','<','>','?','/','|',' ')

    2.

    vliweimsft_1-1677742317231.png

    3.

    vliweimsft_2-1677742344017.png

     

    I think this link will help you:

    Flow: Strip Dots and Special Characters from File Names - Flow - AlanPs1.io

     

    Best Regards,

    Levi

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard