Skip to content
Discussion options

You must be logged in to vote

For a post-provision step, the supported way to schedule a page is an explicit operation on the provisioned IPage: SchedulePublishAsync(DateTime). The PnP PowerShell equivalent documents that it enables scheduling on the Site Pages library when needed. That is a library-level change, so a template importer would need an explicit policy for that case.

I’d avoid silently publishing immediately if the destination cannot schedule the page. A round-trip test should cover a future date, an expired date, and a destination library with scheduling off. In the meantime, storing the intended date alongside the template and applying it after provisioning gives you a place to decide how to handle thos…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Magnus-K-work
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants