Hello
I have been trouble shooting occasional errors in my flow. The user enters text in a SharePoint field and a folder is generated after that.
It had been giving me BadRequests, but a trim operation removed any trailing spaces and it worked great, until it the issue started again.
As it turns out there are also forbidden characters, (:, /, ...) being used.
I naturally think a replace operation could screen out the characters, but it would be a mess. Is there a more elegant solution?
Regards
Conn
Note: you would replace "test" above with your dynamic content.
Hi @ConnM ,
One thing that I have done is insert a compose and replace the illegal characters with an "_" or remove it completely. Here's a sample replace expression to remove the most common characters:
replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(test, '\\', ''), '/', ''), ':', ''), '*', ''), '?', ''), '"', ''), '<', ''), '>', ''), '|', ''), '&', ''), '#', '')
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492