Skip to content

[BUG] Enable-PnPPageScheduling doesn't trigger creation of required fields #5028

@Drenam1

Description

@Drenam1

Notice

Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:

  1. Are you using Invoke-PnPSiteTemplate or Get-PnPSiteTemplate? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/pnp/pnpframework/issues.
  2. Is the issue related to the cmdlet itself, its parameters, the syntax, or do you suspect it is the code of the cmdlet that is causing the issue? Then please continue reporting the issue in this repo.
  3. If you think that the functionality might be related to the underlying libraries that the cmdlet is calling (We realize that might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/pnp/powershell/tree/master/src/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/pnp/pnpframework/issues

Reporting an Issue or Missing Feature

When running the Enable-PnPPageScheduling cmdlet, the required fields are not created on the site pages library.
This is a reopening of this bug: #3447 (comment)

Expected behavior

When the Page Scheduling feature is turned on, a column named "Publish Start Date" is created in the Site Pages library to store the publish date/time info.

Actual behavior

The "Publish Start Date" column is not created by the cmdlet. To get the column, the page scheduling must be turned on via the SharePoint UI.

Steps to reproduce behavior

  1. Have page scheduling disabled
  2. Connect to site with "Connect-PnPOnline -url $targetSite -UseWebLogin"
  3. Run "Enable-PnPPageScheduling"

What is the version of the Cmdlet module you are running?

Tried on v2.1.1 and v3.1.0

Which operating system/environment are you running PnP PowerShell on?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions