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 Apps
Unanswered

Date Filtering

(0) ShareShare
ReportReport
Posted on by 40

Hi! I'm creating a Vehicle booking system. I would like to ensure that the users avoid from double booking. The set up is power apps connected to a SharePoint list. Both columns are in a date and time format.

My logic is the ff: 

After the users entering 2 sets of date and time, power apps would filter the list in SharePoint and give an error message that they should look for another schedule since it is inconflict with other booked schedules. 

 

I've sent screenshots for reference. Thank you for your feedback in advance.

 

image_2022-09-20_104542939.png
image_2022-09-20_104336762.png
Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Hi,

     

    On the Submit button, you can call a flow (with Power apps trigger). You could do the checking in your flow and then return a true/false value along with an error message. You could then display the error message back to the user.

     

    regards

  • LTomas Profile Picture
    40 on at

    I assume you're talking about inserting actions in a button. But how can I get the value in power automate?

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    You can send values from Power Apps as parameters to the flow.

    The flow can return values back to power apps via the Output parameter, which you can save in PowerApps variable.

    Something like this:

    On your button submit property type Set(Result,FlowInApp.Run(DatePicker1.SelectedDate.Result,DatePicker2.SelectedDate.Result)

    If your flow returns 2 output variables (Conflict,Message), they can be retrieved in PowerApps as 

    Result.Conflict (true/false)

    Result.Message (Your error message)

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard