How To Validate Emails With A Click Of A Button In Model-Driven Apps! [Solution Sunday #6]
Howdang Rashid
Microsoft MVP | I automate the boring stuff with the Power Platform | 7X Certified Power Platform & RPA Developer | Content creator |
Did you know there is a built in feature within the Model Driven App settings that allows you to ensure you never get an incorrect email in your system again?
If you didn't, I'm going to show you how you can turn on one of Microsoft's coolest upcoming features to ensure users know when an emails format/domain is valid.
Please note that this feature is currently in Preview. If it's giving you any problems, please turn it off at the 'Model-Driven App' level for the meantime and try again next week.
Part 1 - Turning on Email Address Validation
Step 1 - Enable Email Address Validation in your Environment
To allow this feature to be used, we must configure it at an Environment level first using the Power Platform Admin Centre.
To do this, while you're in the Power Apps Studio (make.powerapps.com), select 'Settings' (the cog on the top right of the screen) and then 'Admin Centre'.
When you're in the Admin Centre, select 'Environments' from the left-hand navigation, and then 'Settings' after you've opened up your chosen Environment.
From your 'Environment Settings', select 'Product' and then 'Features'.
领英推荐
Within 'Features', scroll down the lengthy list of features I wasn't even aware of until today, and switch 'Data Validation' On.
You can now 'Save' these settings and move onto Step 2.
Step 2 - Turn on the 'Smart Email Address Validation' Control in your Model-Driven App
Now you've configured this feature in your Environment, you must still turn it on for your selected Model-Driven app.
This part of the solution is the easiest. Just simply go into your Model Driven App Editor Studio by selecting 'Edit' on your app of choice, and then navigate to 'Settings'.
You should now see the following popup. Select 'Upcoming' from the left-hand navigation, and then 'Enable Smart Email Address Validation Control' (as seen below).
Ensure after doing this, you select 'Save' and 'Publish' your app.
Please note, 'Smart Email Address Validation' is only suitable for 'Email' data type columns in the Dataverse and will not set the field to required. This can be done via Business Rules on the respective Form.
If you learned something or found this valuable, please leave a like and a comment so I can keep creating content like this :)
Until next time, take it easy.
Principle Microsoft 365 Platform Engineer @ Ofgem | Power Platform | Microsoft 365 | Microsoft Azure | Azure Devops
9 个月Hi Howdang, are you planning to upload this and your last few articles to your website? The last article I could find on there is from June 9th.