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

Sharepoint getChanges how to #259

Closed
lalondesteve opened this issue Aug 26, 2020 · 1 comment
Closed

Sharepoint getChanges how to #259

lalondesteve opened this issue Aug 26, 2020 · 1 comment

Comments

@lalondesteve
Copy link

Hello, I'm creating a syncing client between sharepoint and another app. Everything is mostly working, but I can't figure out the usage of ChangeCollection.

events_list = ctx.web.lists.get_by_title('Events')
ctx.load(events_list)
ctx.execute_query()

changes = events_list.get_changes(query=ChangeQuery(list_=True))
ctx.execute_query()

>>> changes
<office365.sharepoint.changes.changeCollection.ChangeCollection object at 0x105608cd0>
>>> changes.properties
{}

I can't figure out where to go from there through introspection or going through the source code.
Most of my actions end up with
requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
upon the next execute_query().

Is there any way to extract the change token or get changes in any form?

@vgrem vgrem added the bug label Sep 9, 2020
@vgrem
Copy link
Owner

vgrem commented Sep 6, 2021

Thanks for catching it, Changes API has been improved (remaining bugs fixed) in the subsequent versions and the provided error should no longer occur.

@vgrem vgrem closed this as completed Sep 6, 2021
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