1

I tried grabbing it by calling

web.lists.getById([THE ID]).get()

but the relative server URL was not in the payload. Is there another method I should use or is there a REST endpoint that provides this info?

Thanks!

2

You need to expand the RootFolder property of a list.

Modify your code as from below sample code :

sp.web.lists.getById([THE ID]).select("Title","RootFolder/ServerRelativeUrl")
.expand("RootFolder").get().then((response) => {
    console.log(response);
});
| improve this answer | |
  • Awesome, this worked just as expected. Thanks so much! – Heythisispaul Aug 2 '18 at 15:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.