-
Notifications
You must be signed in to change notification settings - Fork 45
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
Getting List of Changes of calender items #12
Comments
Huh, weird. Can you show me your code where you try do do the tdwo syncs with different SyncStates? |
This is how I use listChanges with sync state:
|
Just to double check, is that what you've got in your source code? Because $createdElements = $changesSinceLastCheck->getChanges()->getCreate();
$createdElements2 = $changesSinceLastCheck->getChanges()->getCreate(); are both reading from the same Also, a tip: If you already have the completed itemId (like from getItemId()), you can bypass the getCalendarItem() function for more readability. For example $elementWithBody = $calendar->getItem($element->getCalendarItem()->getItemId()); Also, maybe it would be a good idea to dump the ItemId of the elements instead of the subject? That way you have a better way to see if they're the same item or just two items with the same subject? |
Thank you! It works now, changing the second |
No problem :) I'm glad it worked for you. I don't use that function, so I didn't know if there was a bug or not. I realized that I didn't unit test fetching changes when you pass in an existing syncState, so I'm writing those tests now. |
Hi,
I tried to get changed calender items using the code in the example in "getListOfChanges.php".
The response I got for the SyncFolderItems request was right at first and the SyncState Attribute was changed. However, when I tried to get further changes from the calender using the changed SyncState, I got the exact same response containing the same changes again.
Do you know of anything I need to do between to calls SyncFolderItems to not get the same changes again? Or is my understanding of syncing items with the server wrong?
(I tried syncing twice in a row with EWS Editor and it worked as I expected it, I got no changes anymore on second call.)
The text was updated successfully, but these errors were encountered: