Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: list lists in the specified subsite #198

Closed
waldekmastykarz opened this issue Jan 1, 2018 · 3 comments
Closed

New command: list lists in the specified subsite #198

waldekmastykarz opened this issue Jan 1, 2018 · 3 comments

Comments

@waldekmastykarz
Copy link
Member

waldekmastykarz commented Jan 1, 2018

List lists in the specified subsite.

  • command: spo list list -u|--webUrl <webUrl>
  • webUrl: URL of the subsite for which to retrieve the list of lists

Retrieve lists using GET <webUrl>/_api/web/lists?$select=Title,Id,Url
For each list display Id, Title and URL. Take into account possible limitation of how many lists can be retrieved in a single request and ensure you get all of them. Ensure you have access token for the web specified in the webUrl option.

@waldekmastykarz
Copy link
Member Author

Picked up by @rfjschouten

@rfjschouten
Copy link

@waldekmastykarz in my opinion there is no limitation on how many lists can be retrieved. No documentation found on this. If I look at the API call above, only Title, Id and Url are retrieved. Should these fields be displayed for both json and text output option? Or should the json output everything (ListInstance.ts object array)?

@waldekmastykarz
Copy link
Member Author

In many cases, the REST API returns no more than 500 objects, so it would be good to verify if this is the case here as well or not. For JSON output let's indeed retrieve all properties (ie. no $select parameter in the query).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants