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

Scan & Save Data from Images Using AI & Custom Pages in Power Apps

In a recent client requirement, we developed a solution to streamline business card processing by leveraging AI and Power Apps. The goal was t...

2 days ago

Power Apps – Create an app description with Copilot

We are launching Managed Environments. Available in Managed Environments, this AI feature allows makers to generate and save model-driven app ...

5 days ago

User Defined Types in Power Apps

Recently I already mentioned Named Formulas and User Defined Functions in my posts. Today I'm looking at User Defined Types.

5 days ago

Microsoft Viva Connections: Power Apps card

The Power Apps card for Viva Connections enables integration of power cards and applications onto the dashboard for easy access. It’s li...

6 days ago

How to access/display Business Central data directly in Power Apps without using Dataverse and standard Power Platform connector – Call HTTP Request via Power Automate

Hi, Readers.Today I would like to share an interesting topic, how to access/display Business Central data directly in Power Apps without using...

10 days ago

Implementing an info screen with Power Apps

There is a large screen in the open space of our office, which is used very rarely. Mostly during occasional Teams meetings and, of course, du...

10 days ago

Power Apps – Test your canvas apps prior to the being migrated to the New Analysis Engine

If you're using Power Apps canvas apps, it's essential to test them before migration to the New Analysis Engine. The new engine was rolled out...

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