Get List by URL
See original GitHub issueCategory
- Feature request
Describe the feature
Usually we access the lists via URL because the title ( pnpContext.Web.Lists.GetByTitleAsync() ) can always change. The GetList method on the Web object is missing.
Describe the solution you’d like
In CSOM Core I use actually following Code
Web web = clientContext.Web;
clientContext.Load(web);
clientContext.ExecuteQuery();
var webUrl = web.ServerRelativeUrl;
var listUrl = webUrl + "/Lists/tenders/";
var list = web.GetList(listUrl);
Additional context
Is there a possibility to use CSOM in PNP.Core until PNP.Core is feature complete?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to get List by Url using SharePoint 2013 CSOM
How to get List by Url using SharePoint 2013 CSOM · ListCollection.GetById method - returns the list with the specified list identifier ...
Read more >SharePoint Online: PowerShell to Get List by URL
Learn how to get a list from its URL in SharePoint Online using PowerShell! With this guide, you'll be able to get a...
Read more >SharePoint Online: PowerShell to Get List URL
This blog post will show you how to use PowerShell to get the URL of a list in SharePoint Online. Here is how...
Read more >Power Query SharePoint Online list connector
To find the site URL that contains your SharePoint Online list, first open a page in SharePoint. From a page in SharePoint, you...
Read more >CSOM: Get List by URL - TantumPoint - WordPress.com
You can use the following function to get a list by its absolute url. ClientContext context = new ClientContext( "Url" ); var list...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works well, I tested it in an Azure Function
Thanks for reporting this @raclettierer, getting by URL indeed should be added. We’ll add it the coming days and given we have nightly nuget releases you’ll get the feature the day after. I’ll update this issue once done.