-
SharePoint Online, and PnpCore seem to use ID and GetByTitle as default to access a List but I want to get the list by the name. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @pruembeli, |
Beta Was this translation helpful? Give feedback.
-
Thank you Now I have to assemble urls and I have to care if the library or list was created in web/Lists or directly under Web. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the help, this is now working great. |
Beta Was this translation helpful? Give feedback.
Hi @pruembeli,
Have a look at Working with lists
Try to use GetByServerRelativeUrl.
You can combine the ServerRelatvieUrl of the site (/sites/site) with the WebRelativeUrl of the list (Lists/TheBestList) as first parameter (serverRelativeUrl) of GetByServerRelativeUrlAsync