-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APIarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work
Description
The code shown to retrieve a specific list if you know its GUID appears to be incorrect. I cannot make it work as shown.
Code Shown: https://{site_url}/_api/web/lists(**guid**'{list_guid}')
Response: <m:message xml:lang="en-US">The expression "web/lists(**guid**'{77777777-cccc-4444-aaaa-555555555555}')" is not valid.</m:message>
However, I can make it work with: https://{site_url}/_api/web/lists('{list_guid}')
There is an apparently superfluous literal string **guid** in the example, that renders it non-functional.
Note : This apparent flaw is repeated several times on this page.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e5a8f160-c2fd-8692-1c3f-2c5c44c7a286
- Version Independent ID: 2d7064f8-409c-4465-3fbb-bd6a4c2806f5
- Content: Working with lists and list items with REST
- Content Source: docs/sp-add-ins/working-with-lists-and-list-items-with-rest.md
- Product: sharepoint
- GitHub Login: @VesaJuvonen
- Microsoft Alias: vesaj
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APIarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work