2017-08-29 37 views
0

有没有使用Microsoft Graph“标记”消息的方法?如何使用Microsoft Graph标记消息和查询标记的消息

我试过以下,但无济于事,因为它会引发错误。

client.Me.Messages[messageId] 
    .SingleValueExtendedProperties 
    .Request() 
    .AddAsync (new SingleValueLegacyExtendedProperty { 
      Id = "Integer 0x1090", Value = "2" 
     } 

这导致:

Error: 
    Code: ErrorInvalidRequest 
    Message: The OData request is not supported. 
    Inner error: 

也就是有没有办法查询所有标记的消息?

回答

1

flag属性当前仅可用于/beta端点。 beta message object返回一个flag属性,该属性包含followupFlag对象。

"flag": { 
    "flagStatus": "flagged", 
    "dueDateTime": { 
     "dateTime": "2017-08-29T04:00:00.0000000", 
     "timeZone": "UTC" 
    }, 
    "startDateTime": { 
     "dateTime": "2017-08-29T04:00:00.0000000", 
     "timeZone": "UTC" 
    } 
} 

请注意,SDK端点并未得到SDK的完全支持。您可以调用beta版端点,但这些类是从生产原型生成的,因此仅在beta版中的属性(例如flag)将不会填充。