Replace special characters in a string with Power Automate

Error message, cannot contain any of the following characters
Image of default name for Sharepoint referance to Dynamics 365
createArray('.','@','ß','²','³','µ','`','´','°','^','=','(',')','&','$','§', '~','#','%','*',':','<','>','?','/','|',' ', ' ','{','}','!','+','__','___')
replace(variables('stringWithSpecialCharacters'),item(),'_')
replace(variables('replaceSpecialCharacter'),item(),'_')
variables('replaceRepeatingCharacter')
Gif of the flow run.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Fredrik Engseth

Fredrik Engseth

Consultant | Developer | Dynamics 365 | Power Platform | Azure