Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

how to list all items in corrent page? #194

Open
ardeal opened this issue Jul 26, 2022 · 0 comments
Open

how to list all items in corrent page? #194

ardeal opened this issue Jul 26, 2022 · 0 comments

Comments

@ardeal
Copy link

ardeal commented Jul 26, 2022

Hi,

with the following code, I could access the main page of sharepoint.
I would like to go to document folder and go on.

My questions are:

  1. how to list all items in main page or any other page? with the following code, I don't what should be used to replace 'list name'?
    sp_list = site.List('list name')
    data = sp_list.GetListItems('All Items', row_limit=200)
  1. how to access document folder directly when I call Site function?
from shareplum import Site
from shareplum import Office365

authcookie = Office365('https://xx.sharepoint.com', username='[email protected]', password='xxxxxx!').GetCookies()
site = Site('https://xxxx.sharepoint.com/sites/xxxxxx.Ltd/', authcookie=authcookie)
@ardeal ardeal changed the title how to likst all items in corrent page? how to list all items in corrent page? Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant