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'"}
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, them365 spo page section list
andm365 spo page section get
returns the section.Steps to reproduce
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