Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

do not create item if the field value has special characters

Dear All,


I have a Microsoft form, the user enters data in each field then power automate passing this data to SharePoint List, my issue is if the user entered special characters in each field I want power automate to ignore the request and do not create an item in SharePoint list and i have tried the following ,


1- created a condition and add each character in a separate row (it works well but i need to collect them in one row) by contains if the value contains @/*- etc do not create item in SharePoint List 

2- tried to add compose with all characters and in the condition compose field contains compose outputs did not sucess also

I need to collect all special characters in one compose then compare the outputs by contains if the user enters one of any special character do not create item for example 

1- test1@ do not create

2- test#/* do not create and so on

3- test create item


thanks in advance

Continued Contributor
Continued Contributor

@MohamedMo Please check the below blog link, it might help you to create a solution.


Replace special characters in a string with Power Automate | by Fredrik Engseth | Medium


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

thanks for your response, what I need to do to collect all special characters in a compose then add a condition (contains) if outputs contain any special character do not create item

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,115)