代码之家  ›  专栏  ›  技术社区  ›  Sam Craven

在Microsoft Graph API中使用$search参数时,无法获取邮件消息的SingleValueExtendedProperties

  •  0
  • Sam Craven  · 技术社区  · 4 年前

    图形API返回 singleValueExtendedProperties

    /users/user@outlook.com/mailFolders/Inbox/messages?$select=isRead,hasAttachments,subject,from,bodyPreview,receivedDateTime&$expand=singleValueExtendedProperties($filter=id eq 'String {guid} Name propName' or id eq 'etc...')&$top=250
    

    "singleValueExtendedProperties": [{
        "id": "String {guid} Name smAgentId",
        "value": "1"
    }, {
        "id": "String {guid} Name smAssigned",
        "value": "1"
    }, {
        "id": "String {guid} Name smCaseId",
        "value": "1-1-2035004150410"
    }, {
        "id": "String {guid} Name smReviewed",
        "value": "1"
    }, {
        "id": "Integer 0x1081",
        "value": "102"
    }]
    

    但当我加上 $search

    /users/user@outlook.com/mailFolders/Inbox/messages?$select=isRead,hasAttachments,subject,from,bodyPreview,receivedDateTime&$expand=singleValueExtendedProperties($filter=id eq 'String {guid} Name testProp' or id eq 'etc...')&$top=250&$search="search term"
    

    这个 不要被退回。它返回3个我不确定的属性:

    "singleValueExtendedProperties": [{
        "id": "Binary 0xf03",
        "value": "tGvvA9ZjRmOMCJyFDMpV0g=="
    }, {
        "id": "Integer {00062008-0000-0000-c000-000000000046} Id 0x8510",
        "value": "0"
    }, {
        "id": "String {00062008-0000-0000-c000-000000000046} Id 0xe1d",
        "value": "Search Term"
    }]
    

    我希望这两个答案在同一个问题上看起来是一样的

    有什么想法/解决方法吗?

    0 回复  |  直到 4 年前