Skip to main content
3 of 3
replaced http://sharepoint.stackexchange.com/ with https://sharepoint.stackexchange.com/

How to get list by url using client object model?

Is it possible to get list by url using ECMA script client model? For example something like this:

context.get_web().get_lists().getByUrl("Lists/MyList");  

UPD!:
Please, refer to this correct answer on this question (for SP 2013 version only)

Sergei Sergeev
  • 11.6k
  • 5
  • 32
  • 49