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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / do not create item if ...
Power Automate
Unanswered

do not create item if the field value has special characters

(0) ShareShare
ReportReport
Posted on by 87

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

Categories:
I have the same question (0)
  • Shuvam-rpa Profile Picture
    897 Super User 2024 Season 1 on at

    @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!

  • MohamedMo Profile Picture
    87 on at

    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard