web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Check if date and time...
Power Apps
Unanswered

Check if date and time already taken

(0) ShareShare
ReportReport
Posted on by

Hi all. I am new to powerapps and I am developing a custom meeting manager for my business.

 

I would like to know if there is anyway for me to check if the date and time selected for a new meeting request already exists in the dataverse table. The idea is to prevent duplicates and avoid double bookings.

 

Below are screenshots of my table and powerapps form to accept user input.

 

AlexChenko_0-1706624227329.png

AlexChenko_1-1706624309350.png

This is what I have attempted so far with no success.

If(
    LookUp(
        RequestDetails,
        ('Start Date/Time' <= DateValue5.SelectedDate&& 'End Date/Time' > DateValue5.SelectedDate) ||
        ('Start Date/Time' < DateValue6.SelectedDate&& 'End Date/Time' >= DateValue6.SelectedDate) ||
        ('Start Date/Time' < DateValue5.SelectedDate&& 'End Date/Time' > DateValue6.SelectedDate),
        true
    ),
    Notify("There is already an event during these dates, please choose a different date"),
    Notify("Your event has been submitted")
)

 

Thanks in advance for any assistance. 

 

 

Categories:
  • CU18061035-1 Profile Picture
    Microsoft Employee on at

    hey @AlexChenko 

     

    try this please:

    If(
     CountRows(
     Filter(
     RequestDetails,
     ('Start Date/Time' <= DateValue5.SelectedDate && 'End Date/Time' > DateValue5.SelectedDate) ||
     ('Start Date/Time' < DateValue6.SelectedDate && 'End Date/Time' >= DateValue6.SelectedDate) ||
     (DateValue5.SelectedDate <= 'Start Date/Time' && DateValue6.SelectedDate >= 'End Date/Time')
     )
     ) > 0,
     Notify("There is already an event during these dates, please choose a different date"),
     Notify("Your event has been submitted")
    )

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard