Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gallatin: Parsing OData Select and Expand failed: Could not find a property named 'singleValueExtendedProperties' on type 'microsoft.graph.message' #2578

Closed
KaichengHuang opened this issue Jul 10, 2024 · 4 comments
Labels

Comments

@KaichengHuang
Copy link

Describe the bug

Based on https://learn.microsoft.com/en-us/graph/api/singlevaluelegacyextendedproperty-post-singlevalueextendedproperties?view=graph-rest-1.0&tabs=http and https://learn.microsoft.com/en-us/graph/api/singlevaluelegacyextendedproperty-get?view=graph-rest-1.0&tabs=http, create and get singleValueExtendedProperties is supported in Gallatin which is "China operated by 21Vianet". But I test it in following way, it hits error.

Get:
https://microsoftgraph.chinacloudapi.cn/v1.0/me/mailfolders/sentitems/messages/AAMkADZiNDY2NDgzLWEyNjctNDc0Mi04Y2UzLWRmYWU5ZTlkNzczMwBGAAAAAAAsuDXm95qTQaO8H_G1D9NnBwCRMYEyJn9sS7hvpWi4TRRTAAAAAAEJAACRMYEyJn9sS7hvpWi4TRRTAACjl5j6AAA=?$select=internetMessageId,subject,from,sender,toRecipients,ccRecipients,bccRecipients,sentDateTime,id&$expand=singleValueExtendedProperties($filter=Id eq 'string 0x4038')

response:
{
"error": {
"code": "BadRequest",
"message": "Parsing OData Select and Expand failed: Could not find a property named 'singleValueExtendedProperties' on type 'microsoft.graph.message'.",
"innerError": {
"date": "2024-07-10T09:16:05",
"request-id": "e96fe6f2-1d55-47d4-a326-24c1ae585438",
"client-request-id": "e96fe6f2-1d55-47d4-a326-24c1ae585438"
}
}
}

image

patch:
https://microsoftgraph.chinacloudapi.cn/v1.0/me/mailfolders/sentitems/messages/AAMkADZiNDY2NDgzLWEyNjctNDc0Mi04Y2UzLWRmYWU5ZTlkNzczMwBGAAAAAAAsuDXm95qTQaO8H_G1D9NnBwCRMYEyJn9sS7hvpWi4TRRTAAAAAAEJAACRMYEyJn9sS7hvpWi4TRRTAACjl5j6AAA=

body:
{
"singleValueExtendedProperties": [
{
"id": "String {cf7f4a25-a4ec-4d56-99cd-74c698a57ddc} Name LatestRecallTime",
"value": "03:16:57.228 AM 9/18/2023"
}
]
}

response:
{
"error": {
"code": "RequestBodyRead",
"message": "The property 'singleValueExtendedProperties' does not exist on type 'Microsoft.OutlookServices.Message'. Make sure to only use property names that are defined by the type or mark the type as open type.",
"innerError": {
"date": "2024-07-10T09:18:00",
"request-id": "608917d1-2038-414a-99c6-0e334906f991",
"client-request-id": "608917d1-2038-414a-99c6-0e334906f991"
}
}
}

image

Expected behavior

I test this in Dod which is US Government L5, it works for both get and create operation.
So, it is Gallatin environment issue.

Get:
image

Patch:
image

Get the patch value:
image

How to reproduce

Just use postman with correct user token.

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
@KaichengHuang KaichengHuang added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Jul 10, 2024
@andrueastman
Copy link
Member

Thanks for raising this @KaichengHuang

As this repo is mainly intended for SDK related issues, we may not be best placed to handle issues with regards to the API side functionality.

Any chance you can post a question at https://aka.ms/askGraph to confirm if this is expected? Otherwise, you can also provide feedback at https://aka.ms/graphFeedback for the relevant API owners to look into this.

@andrueastman andrueastman added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Jul 10, 2024
@KaichengHuang
Copy link
Author

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Jul 10, 2024
@andrueastman
Copy link
Member

Thanks for this @KaichengHuang.

We'll close this here for now so that is may be followed up there.

@KaichengHuang
Copy link
Author

Update:

Sandeep Reddy sent a PR to fix this issue for Gallatin: Pull request 10460063: Updated Message schema to add singleValueExtendedProperties. - Repos (azure.com)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants