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 Apps / C# Validation Plugin
Power Apps
Unanswered

C# Validation Plugin

(0) ShareShare
ReportReport
Posted on by 8

Hey guys.
I'm creating my first Plugin. I want it to validate that SSN is correct. In this case, I want to validate if the CPF is correct (CPF is the same as the SSN - however, in Brazil).

 

On customer creation (table:gbrmad_cliente) I want to validate column gbrmad_strcpf

 

I believe I created the correct logic with REGEX, however, how do I go about creating the registration, after validating? Considering that it will be a new customer (with all data such as: Name and Address)?

Thanks!
Below is the code

Captura de tela 31-01-2022 16.16.24.png

 

Code available here: https://github.com/GabrielPoppes/Treinamento/blob/master/ValidacaoCPF/ValidarCPF.cs

 

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    Can you please explain what do you mean by "creating the registration, after validating"?

  • Closy Profile Picture
    8 on at

    Hello. Of course! The Plugin will be used in the customer registration.

    However, the client will only be registered after the validation of the gbrmad_strcpf column

     

    If the informed document is invalid, I will display the message that it is invalid. If it is valid, I register the customer.

    To check if the column is valid, I used a regular expression, but I don't know how the logic is to register the customer after checking.

    Thanks.

  • Verified answer
    a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Aha. In this case, I would recommend moving your validation logic to the Client-Side and performing that validation there.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard