[英]Retrieve SingleValueExtendedProperties with MS-Graph API created with EWS
我的應用程序在Office 365中的Exchange與我的數據庫之間同步事件。 現在我使用EWS並添加擴展屬性(ExtendedProperties)來保存一些自定義數據。 幾個星期后,同步不再起作用了。 在Microsoft打開了一張票,但沒有解決方案。 所以我想用MS-Graph API替換EWS並做同樣的事情。
對於每個事件,我有一個像這樣創建的擴展屬性:new ExtendedPropertyDefinition(myGUID,“customName”,MapiPropertyType.String);
並創建了3個擴展屬性:new ExtendedPropertyDefinition(DefaultExtendedPropertySet.PublicStrings,“customName”,MapiPropertyType.String)
使用MS-Graph API,我可以得到第一個,因為我有一個GUID但我沒有找到其他3個的擴展/過濾請求
https://graph.microsoft.com/v1.0/users/xxxx@xxx.com/events/AAMkAAAAENAADrikE09bj2T7c3PGHoeoTWAASW=?$ expand = singleValueExtendedProperties($ filter = Id eq'String {myGUID} Name customName')
有人可以幫我解決使用singleValueExtendedProperties過濾器獲取其他擴展屬性的請求嗎?
如果我更改過濾器格式,則響應為:'MapiPropertyType namespaceGuid Name propertyName','MapiPropertyType namespaceGuid Id propertyId'或'MapiPropertyType propertyTag'。“
PublicStrings的Guid是0020329-0000-0000-c000-000000000046所以只需使用它,或者一個Or Statement應該工作,例如
$expand=SingleValueExtendedProperties(=(Id eq 'Binary 0x3019') or (Id eq 'Integer
0x301D') or
(Id eq 'Integer 0x301A') or (Id eq 'Binary 0x301B') or (Id eq 'SystemTime 0x301C') or
(Id eq 'String {403FC56B-CD30-47C5-86F8-EDE9E35A022B} Name ComplianceTag') or (Id eq
'Binary 0x348A')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.