Skip to content

Bug report: m365 spo page clientsidewebpart add does not work on vertical section #6265

@hsantens

Description

@hsantens

Priority

(Medium) I'm annoyed but I'll live

Description

When a SharePoint page has a vertical section (create manually or by CLI) you cannot add a webpart to this section by m365 spo page clientsidewebpart add. Error is {"error":"Invalid section '2'"}
However, the m365 spo page section list and m365 spo page section get returns the section.

Steps to reproduce

  • Create a vertical section on a SharePoint page
  • Add a webpart to the section e.g. m365 spo page clientsidewebpart add --webUrl $site --pageName "Home.aspx" --standardWebPart Image --section 2 --column 1

Expected results

The webpart being added to the vertical section

Actual results

Webpart is not added.
Error: {"error":"Invalid section '2'"}

Diagnostics

No response

CLI for Microsoft 365 version

v8.0.0

nodejs version

v20.12.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions