cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Disable a PowerApp in the weekend

Dear Community,

I searched for the answer to my question but could not find a similar issue. 

 

Is it possible to somehow disable my PowerApp only in the weekend? We do not want any staff members do anything in the app in the weekend. 

Thank you! 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

@ZuzaGlog 

 

I do not know exact use case of your requirement.

 

Do you want your staff (end users) not using the app to enter/view/edit the data using the app over the weekend?

 

Here is my recommendation:

a. In the app, create a new screen "WeekendScreen" and place a message.

b. On app start, check the current date. if the current date's weekday is Saturday or Sunday, then redirect the user to the new screen "WeekendScreen" by using Navigate function. If not weekend, just redirect the user to your required screen.

 

You can use functions related to date such as Weekday(), Now(), Today() to achieve this.

 

Here is the reference to the functions:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-datetime-parts

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-now-today-istoday

 

If you have further questions, please feel free to post here.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

 

 

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

@ZuzaGlog 

 

I do not know exact use case of your requirement.

 

Do you want your staff (end users) not using the app to enter/view/edit the data using the app over the weekend?

 

Here is my recommendation:

a. In the app, create a new screen "WeekendScreen" and place a message.

b. On app start, check the current date. if the current date's weekday is Saturday or Sunday, then redirect the user to the new screen "WeekendScreen" by using Navigate function. If not weekend, just redirect the user to your required screen.

 

You can use functions related to date such as Weekday(), Now(), Today() to achieve this.

 

Here is the reference to the functions:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-datetime-parts

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-now-today-istoday

 

If you have further questions, please feel free to post here.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

 

 

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (11,405)