cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
CMHants
Level: Powered On

Send an Email when a user completes a date incorrectly

Hi All,

 

This is just a query but is it possible to send the creator of an item an email using flow if they  enter the date in the wrong format in a sharepoint list via powerapps. 

 

What i mean by that is that I want users to use the format "dd/mm/yy" if they dont then they get an email telling them to.

 

right now users put in whatever format they want. Ordinarily i would have used a date picker in my powerapp but im too lazy to undo it all at the moment.

 

Thanks for your help and happy friday 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Send an Email when a user completes a date incorrectly

Hi @CMHants,

 

From your description, the type of the date column of SharePoint list seems to be  single-line text type, not the Date and Time type.

I used Create item action to test. If the date column type is Date and Time, as long as the date of the fill is valid, no matter which format, there is no difference in the format displayed in the list, so I guess the date column may be  single-line text type.

If this is what I speculate, maybe you could use following method to achieve your needs.

  Use When an item is created as trigger

  Use formatDateTime() function to convert the value of the date column to the format you expect.

  Configure Condition to compare the converted value(String) to the value of date column(String).

If they are the same(is equal to), the user-filled date value format is expected, and if they are not the same, the message is sent.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Send an Email when a user completes a date incorrectly

Hi @CMHants,

 

From your description, the type of the date column of SharePoint list seems to be  single-line text type, not the Date and Time type.

I used Create item action to test. If the date column type is Date and Time, as long as the date of the fill is valid, no matter which format, there is no difference in the format displayed in the list, so I guess the date column may be  single-line text type.

If this is what I speculate, maybe you could use following method to achieve your needs.

  Use When an item is created as trigger

  Use formatDateTime() function to convert the value of the date column to the format you expect.

  Configure Condition to compare the converted value(String) to the value of date column(String).

If they are the same(is equal to), the user-filled date value format is expected, and if they are not the same, the message is sent.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,997)