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!
Solved! Go to Solution.
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 Solution. Marking 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. |
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 Solution. Marking 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. |
User | Count |
---|---|
258 | |
110 | |
90 | |
51 | |
44 |