Skip to main content

Notifications

Power Pages - General Discussions
Answered

Making the page unavailable during certain times

(0) ShareShare
ReportReport
Posted on by 2,089

Hello everyone,

 

maybe somebody already came across such a problem.

Every night the customer wants to update the database which is effecting the items on my page.

Unfortunately I have to transform the data before publishing those with PowerAutomate. The flow takes around 20-30 Minutes.

In that time no client shall be able to place an order as not all items are yet loaded.

 

I would create a javascript Date object and transform it as needed and block the user from submitting an order.

Problem is that I would need to use UTC and apply a rule when we got daylight time and when not to properly block the users.

 

Does liquid use the local page data where it is set up, so I could just fetch that?

Anybody who encountered a similar problem and has a tip?

 

 

Categories:
  • Verified answer
    Fubar Profile Picture
    Fubar 7,677 on at
    Re: Making the page unavailable during certain times

    If you don't want to take down the whole site, one possibility, but not sure if it will work.

    • Create a Web Page that tells the user to come back later
    • Use a portal Redirect record to redirect from the page you do not want them to access to the Web Page that tells them to come back later
    • With Flow Disable/Enable the Redirect record (enable 15 minutes before you start your update, disable at the end) - or instead of enable/disable, create/delete it

    Alternatively, create a custom Web Template behind the Pages that you want to not be available, and in the Template with Liquid check the Web Pages Publish state if published show the Form else show a message to come back later.  Use Flow to change the Publish state.

     

    Other than taking down the whole site (which will happen almost straight away), they all will have the portal Cache to contend with so you will have to leave enough time at either end for it to read the updates and not the cached values.

  • ragavanrajan Profile Picture
    ragavanrajan 7,023 on at
    Re: Making the page unavailable during certain times

    Hi @Lucas001 

     

    The standard and best practice is to enable maintenance mode while doing the update to the database. 

    Official link here 

    Tip: You can create a custom page with a specific message about the migration so the customers can get your message. 

     

    Also, from my experience, using the Power Platform pipelines will also be helpful when you are upgrading your database.

     

    Hope it helps.
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard