Bug report: for `spo list` commands, the option `listTitle` is not enforced as string
@Adam-it is already working on this.
Since Nov 27, 2025.
Assessment
This issue has not been assessed yet.
Description
Priority
(Medium) I'm annoyed but I'll live
Description
When trying to attach a SharePoint webhook to a library whose name is a number, the command fails.
This is because the request body looks like this:
{
"resource": 2025,
"notificationUrl": "https://something.example.com",
"expirationDateTime": "2025-08-28T19:13:56.181Z"
}
The resource parameter should be a string, and not a number.
Steps to reproduce
Use list webhook add on a library whose name is a number.
Expected results
Webhook attached.
Actual results
Cannot convert a primitive value to the expected type 'Edm.String'. See the inner exception for more details.
Diagnostics
No response
CLI for Microsoft 365 version
10.4.0
nodejs version
22.14.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
Instead of only force typing the listTitle parameter, let's type every parameter correctly to avoid more problems.
I also suggest that we do this for every spo list command to prevent problems like these from happening.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 413
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 21
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pnp/cli-microsoft365
-
docs help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
pnp/cli-microsoft365#7537 ·
-
docs help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pnp/cli-microsoft365#7535 ·
-
docs help wanted
Difficulty 2/5 1-2 days Newbie friendliness 78/100
pnp/cli-microsoft365#7529 ·
-
docs help wanted
Difficulty 2/5 1-2 days Newbie friendliness 78/100
pnp/cli-microsoft365#7507 ·
-
docs help wanted
Difficulty 2/5 1-2 days Newbie friendliness 78/100
pnp/cli-microsoft365#7500 ·
All issues in pnp/cli-microsoft365
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·