EWS Microsoft交换-同步-同步项目响应-奇怪的行为?

时间:2018-08-10 05:42:44

标签: odata office365 exchangewebservices office365api outlook-restapi

有关Ews同步项目的一般问题-(syncItems) 正如我从文档中看到的那样,我试图了解操作的结果是"created,deleted,updated"

https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/mailbox-synchronization-and-ews-in-exchange

Mu场景如下: 我正在尝试计算后续syncItem(状态)之间的所有"deleted"项目,

在EWS SDK方法中看到的

SyncItemsResponse : syncItems(FolderId folderId, ItemShape itemShape, String state)

它仅包含一个考虑状态的参数,因此我在每两个同步之间进行一次计算

example:
`SyncItemsResponse:syncItems(state1 - state2) = delta is "what created/deleted/updated between the states.`"

但是我在"deleted items"中遇到了奇怪的结果...。while created Items随着时间的流逝而减少(从2017年开始的状态……至今)

deleted items一次又一次地下降。...

我已附上屏幕截图:

这是循环(i = 0,1,2 ...)中状态的迭代-

// I'm calculating => (next - current) = delta
current deleted:2 next deleted:1 current created:252 next created: 250
current deleted:1 next deleted:2 current created:250 next created: 245
current deleted:2 next deleted:3 current created:245 next created: 244
current deleted:3 next deleted:4 current created:244 next created: 244
current deleted:4 next deleted:4 current created:244 next created: 244
current deleted:4 next deleted:4 current created:244 next created: 243
current deleted:4 next deleted:3 crreent created:243 next created: 242
current deleted:3 next deleted:3 current created:242 next created: 242
current deleted:3 next deleted:3 current created:242 next created: 241
current deleted:3 next deleted:3 current created:241 next created: 239
current deleted:3 next deleted:2 current created:239 next created: 238
current deleted:2 next deleted:2 current created:238 next created: 237
current deleted:2 next deleted:3 current created:237 next created: 233
current deleted:3 next deleted:4 current created:233 next created: 232
current deleted:4 next deleted:4 current created:232 next created: 230
current deleted:4 next deleted:4 current created:230 next created: 230
current deleted:4 next deleted:4 current created:230 next created: 230
current deleted:4 next deleted:4 current created:230 next created: 228
current deleted:4 next deleted:4 current created:228 next created: 227
current deleted:4 next deleted:4 current created:227 next created: 223
current deleted:4 next deleted:4 current created:223 next created: 223
current deleted:4 next deleted:4 current created:223 next created: 222
current deleted:4 next deleted:4 current created:222 next created: 220
current deleted:4 next deleted:4 current created:220 next created: 217
current deleted:4 next deleted:4 current created:217 next created: 217
current deleted:4 next deleted:3 current created:217 next created: 216
current deleted:3 next deleted:3 current created:216 next created: 216
current deleted:3 next deleted:3 current created:216 next created: 214
current deleted:3 next deleted:3 current created:214 next created: 213
current deleted:3 next deleted:3 current created:213 next created: 211
current deleted:3 next deleted:3 current created:211 next created: 211
current deleted:3 next deleted:3 current created:211 next created: 209
current deleted:3 next deleted:4 current created:209 next created: 201
current deleted:4 next deleted:3 current created:201 next created: 200
current deleted:3 next deleted:3 current created:200 next created: 199
current deleted:3 next deleted:3 current created:199 next created: 196
current deleted:3 next deleted:3 current created:196 next created: 193
current deleted:3 next deleted:3 current created:193 next created: 191
current deleted:3 next deleted:2 current created:191 next created: 190
current deleted:2 next deleted:2 current created:190 next created: 190
current deleted:2 next deleted:2 current created:190 next created: 190
current deleted:2 next deleted:1 current created:190 next created: 189
current deleted:1 next deleted:1 current created:189 next created: 187
current deleted:1 next deleted:1 current created:187 next created: 186
current deleted:1 next deleted:1 current created:186 next created: 185
current deleted:1 next deleted:1 current created:185 next created: 184
current deleted:1 next deleted:1 current created:184 next created: 183
current deleted:1 next deleted:1 current created:183 next created: 180
current deleted:1 next deleted:1 current created:180 next created: 178
current deleted:1 next deleted:1 current created:178 next created: 177
current deleted:1 next deleted:1 current created:177 next created: 177
current deleted:1 next deleted:1 current created:177 next created: 177
current deleted:1 next deleted:1 current created:177 next created: 177
current deleted:1 next deleted:1 current created:177 next created: 170
current deleted:1 next deleted:1 current created:170 next created: 169
current deleted:1 next deleted:1 current created:169 next created: 168
current deleted:1 next deleted:1 current created:168 next created: 168
current deleted:1 next deleted:0 current created:168 next created: 166
current deleted:0 next deleted:1 current created:166 next created: 166
current deleted:1 next deleted:1 current created:166 next created: 164
current deleted:1 next deleted:1 current created:164 next created: 164
current deleted:1 next deleted:2 current created:164 next created: 164
current deleted:2 next deleted:2 current created:164 next created: 164
current deleted:2 next deleted:3 current created:164 next created: 163
current deleted:3 next deleted:2 current created:163 next created: 158
current deleted:2 next deleted:2 current created:158 next created: 157
current deleted:2 next deleted:2 current created:157 next created: 157
current deleted:2 next deleted:2 current created:157 next created: 157
current deleted:2 next deleted:2 current created:157 next created: 156
current deleted:2 next deleted:2 current created:156 next created: 156
current deleted:2 next deleted:2 current created:156 next created: 155
current deleted:2 next deleted:2 current created:155 next created: 154
current deleted:2 next deleted:2 current created:154 next created: 153
current deleted:2 next deleted:3 current created:153 next created: 141
current deleted:3 next deleted:3 current created:141 next created: 140
current deleted:3 next deleted:3 current created:140 next created: 134
current deleted:3 next deleted:2 current created:134 next created: 132
current deleted:2 next deleted:1 current created:132 next created: 128
current deleted:1 next deleted:1 current created:128 next created: 125
current deleted:1 next deleted:1 current created:125 next created: 124
current deleted:1 next deleted:1 current created:124 next created: 124
current deleted:1 next deleted:2 current created:124 next created: 121
current deleted:2 next deleted:3 current created:121 next created: 118
current deleted:3 next deleted:3 current created:118 next created: 118
current deleted:3 next deleted:3 current created:118 next created: 117
current deleted:3 next deleted:3 current created:117 next created: 116
current deleted:3 next deleted:3 current created:116 next created: 116
current deleted:3 next deleted:2 current created:116 next created: 110
current deleted:2 next deleted:2 current created:110 next created: 109
current deleted:2 next deleted:1 current created:109 next created: 106
current deleted:1 next deleted:1 current created:106 next created: 103
current deleted:1 next deleted:1 current created:103 next created: 103
current deleted:1 next deleted:2 current created:103 next created: 102
current deleted:2 next deleted:2 current created:102 next created: 101
current deleted:2 next deleted:2 current created:101 next created: 99
current deleted:2 next deleted:2 current created:99 next created: 95
current deleted:2 next deleted:2 current created:95 next created: 95
current deleted:2 next deleted:2 current created:95 next created: 87
current deleted:2 next deleted:2 current created:87 next created: 87
current deleted:2 next deleted:1 current created:87 next created: 85
current deleted:1 next deleted:1 current created:85 next created: 80
current deleted:1 next deleted:1 current created:80 next created: 71
current deleted:1 next deleted:2 current created:71 next created: 68
current deleted:2 next deleted:1 current created:68 next created: 67
current deleted:1 next deleted:0 current created:67 next created: 66
current deleted:0 next deleted:0 current created:66 next created: 64
current deleted:0 next deleted:0 current created:64 next created: 59
current deleted:0 next deleted:0 current created:59 next created: 58
current deleted:0 next deleted:0 current created:58 next created: 57
current deleted:0 next deleted:0 current created:57 next created: 56
current deleted:0 next deleted:0 current created:56 next created: 56
current deleted:0 next deleted:0 current created:56 next created: 56
current deleted:0 next deleted:0 current created:56 next created: 56
current deleted:0 next deleted:0 current created:56 next created: 55
current deleted:0 next deleted:0 current created:55 next created: 52
current deleted:0 next deleted:0 current created:52 next created: 51
current deleted:0 next deleted:0 current created:52 next created: 51
current deleted:0 next deleted:0 current created:51 next created: 51
current deleted:0 next deleted:0 current created:51 next created: 51
current deleted:0 next deleted:0 current created:51 next created: 49
current deleted:0 next deleted:0 current created:49 next created: 49
current deleted:0 next deleted:0 current created:49 next created: 40
current deleted:0 next deleted:0 current created:40 next created: 39
current deleted:0 next deleted:0 current created:39 next created: 39
current deleted:0 next deleted:0 current created:39 next created: 39
current deleted:0 next deleted:0 current created:39 next created: 38
current deleted:0 next deleted:0 current created:38 next created: 38
current deleted:0 next deleted:0 current created:38 next created: 36
current deleted:0 next deleted:0 current created:36 next created: 36
current deleted:0 next deleted:0 current created:36 next created: 34
current deleted:0 next deleted:0 current created:34 next created: 34
current deleted:0 next deleted:0 current created:34 next created: 29
current deleted:0 next deleted:0 current created:29 next created: 28
current deleted:0 next deleted:0 current created:28 next created: 27
current deleted:0 next deleted:1 current created:27 next created: 25
current deleted:1 next deleted:1 current created:25 next created: 25
current deleted:1 next deleted:0 current created:25 next created: 24
current deleted:0 next deleted:0 current created:24 next created: 14
current deleted:0 next deleted:0 current created:14 next created: 8
current deleted:0 next deleted:0 current created:8 next created: 7
current deleted:0 next deleted:0 current created:7 next created: 7
current deleted:0 next deleted:0 current created:7 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 4
current deleted:0 next deleted:0 current created:4 next created: 3
current deleted:0 next deleted:0 current created:3 next created: 2
current deleted:0 next deleted:0 current created:2 next created: 2
current deleted:0 next deleted:0 current created:2 next created: 2
current deleted:0 next deleted:0 current created:2 next created: 1
current deleted:0 next deleted:0 current created:1 next created: 1
current deleted:0 next deleted:0 current created:1 next created: 0
current deleted:0 next deleted:0 current created:0 next created: 0
current deleted:0 next deleted:0 current created:0 next created: 0

我的问题是"deleted items"也没有减少而创建时却没有减少的原因是什么? 我是否缺少syncItems的基本功能?

请咨询

0 个答案:

没有答案