web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to set an Expiry D...
Power Pages
Answered

How to set an Expiry Date on a Webpage?

(0) ShareShare
ReportReport
Posted on by 40

It seems that Microsoft took away the automated ability for the expiry date setting in Page Settings. 

 

Does anyone know how we can achieve this functionality now? 

Objective: Shutdown the page/form at 11:59pm 

 

Manage web pages | Microsoft Learn

TA_Jeremy_0-1717529521658.png

 

Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,350 Super User 2025 Season 2 on at

    Use Liquid, couple of options depending on what you need (may need both depending)

    • Could edit the 'Header' Web Template to not populate it in the menu
    • Wrap the page content in a Liquid 'if' and check for the date, if still valid show content else show message on the screen 

    Liquid has a 'now' object to get the current date-time and the expiry field is probably still exposed on the 'page' object so could possibly still use it.

    https://learn.microsoft.com/en-us/power-pages/configure/liquid/control-flow-tags#if

    https://learn.microsoft.com/en-us/power-pages/configure/liquid/liquid-types#datetime

    https://learn.microsoft.com/en-us/power-pages/configure/liquid/liquid-filters#date-filters

  • JW-22072146-0 Profile Picture
    40 on at

    This is awesome, thanks so much! 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard