cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ZuzaGlog
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
rsaikrishna
Community Champion
Community Champion

@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
rsaikrishna
Community Champion
Community Champion

@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.

 

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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