Loading...

Power Apps : Smart Email Address Validation

Power Apps : Smart Email Address Validation
Power Apps : Smart Email Address Validation Stephane Pelhatre Mon, 06/17/2024 - 13:47
Body

Power Apps : Smart Email Address Validation

Introduction

Traditionally, the existing Email column type has only basic email validation: a valid email address consists of an email prefix (left part of @ symbol) and an email domain (right part of @ symbol). So it is a very basic validation.
With smart Email address validation, the Email column comes with better validation that includes reasons for the column being invalid.

Smart Email address validation detects the following issues:

  • Incorrect syntax: For example, an address that doesn't contain both a username and an email domain.
  • Disposable domain: An address that contains a known disposable or temporary email domain.
  • Test or spam email addresses: An address that contains known indicators of a test or spam address in the email header or metadata, IP address, HTML code of the email, and email content and formatting.
  • Expired email addresses: This is an email account that has expired and can no longer receive or send email.
  • Emails that bounce back: This is an address that can't receive a message for any reason other than being expired.

Note that this feature went into public preview in October 2022 and it is still in preview in June 2024. So it has been in preview for a long time.

Prerequisites

  • The Data validation Power Platform environment setting must be enabled.
    The feature must also be enabled in the model-driven app.
    See below for activation in Power Platform environment  and in model-driven app.
  • Smart Email address validation only performs validation on text columns with the Email format type.
    For example, the Email or Email Address 2 columns for the account table.
  • Smart Email address validation is supported only by model-driven apps. It is not supported by Canvas apps.

Enable Smart Email Address Validation

You first have to enable setting Data validation in your Power Platform environment. By default this setting is disabled.
Connect to Power Platform Admin Center (https://admin.powerplatform.microsoft.com/environments) , select the environment for which you want to enable Data Validation and click on Settings in the command bar.

Power Apps : Smart Email Address Validation


Then expand Product section and go to Features.

Power Apps : Smart Email Address Validation

Then scroll down until you find Data Validation option. It is turned off by default.

Power Apps : Smart Email Address Validation

Turn it on and click on Save.

Power Apps : Smart Email Address Validation

But it is not finished... You need to enable the feature in your model-driven app.
So connect to https://make.powerapps.com/ and open your app in the App Designer.
Click on Settings in the command bar and then go to Upcoming features in the Settings list on the left side.
Scroll down until you see Email Smart Email Address Validation Control. It is disabled by default.

05

Turn the feature on and click on Save.

06

And finally do not forget to publish your app.

That's OK now, smart email address validation is enabled for your app.
If you want to enable this feature for multiple model-driven apps, you’ll need to follow previous steps for each app.

Email validation in practice

As an example I consider column 'Email' in table Account.

When you enter data in 'Email' column, it’s validating on the fly.
You don’t have to wait for the record to be saved. As soon as the email address column has data, the verification will run and show the result.

During the validation you will get the message 'Validating email address...'.

Power Apps : Smart Email Address Validation

Below the result with the value '[email protected]'.

08

Another result with a different Email address.

09

And the result with a disposable Email address.

Power Apps : Smart Email Address Validation

And the result with an error in the domain name.

Power Apps : Smart Email Address Validation

Remarks

A few remarks:

  • Smart email address validation works with quick create forms.
  • If an email address is showing as an invalid address, user can still save the record with the invalid email address. So it is only a warning.
  • If you open a record with an invalid email address there is no visual warning to indicate that the email address is invalid.
    You will see whether or not there is an issue with an email address when you enter an email address, but not when you open a record.

Power Apps : Smart Email Address Validation

Published on:

Learn more
Featured Articles | Dynamics Chronicles
Featured Articles | Dynamics Chronicles

Welcome to our blog, the content is entirely dedicated to Microsoft Dynamics 365, CRM, Power Platform, Common Data Service (CDS) but also Azure. Follow us !

Share post:

Related posts

Paging in Gallery in Canvas App Power Apps

You can easily implement paging concept for your gallery in canvas APP. follow below steps to achieve this. watch full video here or read the ...

21 hours ago

Paper to Power App: Creating a Canvas App in D365 CRM from a Hand-Drawn Sketch

Power Apps, known for its low-code/no-code capabilities, now offers the ability to create complete apps from an image. Sometimes, the best way...

3 days ago

Using Copilot to Create and Explain Formulas – Power Apps

Using the new features – Create a formula (preview) and Explain this formula we can now easily write, edit, and understand formulas in Power A...

3 days ago

SQL Stored Procedures in Power Apps and the maximum data row limit

With connectors in Power Apps we can collect 2000 items at a time when we read data from lists and libraries. However with SQL Stored Procedur...

3 days ago

The Benefits of Hiring a Power Apps Consultant for your Business

Introduction Franklin D. Roosevelt once said, ‘The only limit to our realization of tomorrow will be our doubts of today.’… ...

8 days ago

Generating Power Fx Formulas with Multi-Language Comment Support in Power Apps Using Copilot

The Comment-Generated Formulas feature in Power Apps lets you create Power Fx formulas directly from code comments. By typing `//` or ‘/*’ fol...

9 days ago

Field suggestions by Copilot –Power Apps (Dataverse)

Field Suggestions by Copilot for Canvas Apps apply to Gallery, Form Table controls both classic and modern for Dataverse, SharePoint, or SQL S...

9 days ago

A Guide for Power Apps Integration with SharePoint

Introduction Many companies are leveraging Power Apps and SharePoint integration which enables them to develop responsive, low-code applicatio...

10 days ago

Mock Power Apps connectors in tests with Playwright

Power Apps connectors allow you to connect your app to external services like SharePoint, Microsoft 365, or custom APIs. When you build a Powe...

10 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy