cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MohamedMo
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

2 REPLIES 2
Shuvam-rpa
Super User
Super User

@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

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,030)