question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Category

  • 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
raclettierercommented, Oct 10, 2020

Works well, I tested it in an Azure Function

1reaction
jansenbecommented, Oct 7, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found