问题描述
我正在尝试使用 Microsoft Graph 获取 PT_DOUBLE
和 PT_CLSID
自定义属性数据类型的值.我可以轻松获取 PT_LONG
(整数)或 PT_UNICODE
(字符串)的自定义属性.整数和字符串不适用于 PT_DOUBLE
和 PT_CLSID
属性,我收到此错误:
I'm trying to get values for PT_DOUBLE
and PT_CLSID
custom property data types using Microsoft Graph. I have no trouble getting custom properties for PT_LONG
(Integer) or PT_UNICODE
(String). Integer and String does not work for PT_DOUBLE
and PT_CLSID
properties, and I get this error:
ErrorInvalidExtendedProperty:扩展属性属性组合无效.
关于支持的数据类型的文档 不是很清楚.
这是一个适用于 PT_UNICODE
和 PT_LONG
道具的示例请求:
Here's a sample request that works for PT_UNICODE
and PT_LONG
props:
https://outlook.office.com/api/v2.0/me/contactfolders/{id}/contacts?
$top=1&
$expand=SingleValueExtendedProperties($filter=
(PropertyId eq 'String {1A417774-4779-47C1-9851-E42057495FCA} Name InlineLinks')+OR+
(PropertyId eq 'String {1A417774-4779-47C1-9851-E42057495FCA} Name XrmCompanyPeople')+OR+
(PropertyId eq 'Integer {1A417774-4779-47C1-9851-E42057495FCA} Name XrmContactType'))
我可以不用 PT_DOUBLE
,但我真的需要访问这些 PT_CLSID
道具(String
和 Guid
不工作):
I can live without PT_DOUBLE
, but I really need to access these PT_CLSID
props (String
and Guid
do not work):
XrmContactId: Tag = 0x86680048;
DASL: http://schemas.microsoft.com/mapi/string/{1A417774-4779-47C1-9851-E42057495FCA}/XrmContactId/0x00000048;
Kind: MNID_STRING
XrmId: Tag = 0x86680048;
DASL: http://schemas.microsoft.com/mapi/string/{1A417774-4779-47C1-9851-E42057495FCA}/XrmId/0x00000048;
Kind: MNID_STRING
有人知道 PT_CLSID
的数据类型名称或 Microsoft Graph 支持的数据类型列表吗?Exchange 服务器协议主属性列表 通读一遍很痛苦,而且没有给我任何见解.
Does anyone know the data type name for PT_CLSID
or list of supported data types for Microsoft Graph? The Exchange Server Protocols Master Property List is painful to read through and it didn't give me any insights.
推荐答案
对于 SingleValueLegacyExtendedProperty,PropertyID 和 Value 元素都是字符串.
For SingleValueLegacyExtendedProperty, both the PropertyID and Value elements are strings.
澄清一点,您在此处调用的 API 是 Outlook API 而不是 Graph.虽然它们提供类似的功能,但它们是不同的端点.图表中的扩展属性也只支持字符串值.
One bit of clarification, the API you're calling here is the Outlook API and not Graph. While they provide similar functionality, they are distinct endpoints. Extended Properties in Graph also only supports string values.
这篇关于对于使用 GRAPH 的某些数据类型,无法从 Outlook 联系人获取 SingleValueExtendedProperties的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!