dataiku / dss-plugin-sharepoint-online

Dataiku DSS plugin to interact with your lists and documents stored on Microsoft SharePoint Online
https://www.dataiku.com/product/plugins/sharepoint-online/
Apache License 2.0
3 stars 4 forks source link

Allow using AllItems view instead of default view for Sharepoint lists + change paging size #24

Closed ghost closed 1 year ago

ghost commented 3 years ago

Some of the Sharepoint Lists we want to connect to have multiple views defined. At least on one list, it's default view is filtered (i.e. showing only non-completed values).

To transfer all the list's items (and not only those in the default view), we have to figure out the ID of AllItems.aspx, which always shows all items of said list.

Addition: We also had issues on larger Sharepoint lists taking a long time to load. Therefore a custom page size option has been added as well.

This PR therefore adds/changes the following:

python-connectors/sharepoint-online_lists/connector.json:

python-lib/sharepoint_client.py:

python-connectors/sharepoint-online_lists/connector.py:

If you have any suggestions please let me know.

Best regards, Richard