Open Sdelausnay opened 2 weeks ago
Thanks for raising this @Sdelausnay
To confirm, are you serializing the result using a serializer like System.Text.Json
do you get a different result if you follow the sugestion at https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2638#issuecomment-2311752427
I have tested it but same results, no more info and if I look in the debug a the properties, all fields returned by the function are null.
Any chance you can share the results? As Kiota generated models are self-contained with serialization information, you should'nt be seeing properties like backingStore
. Also properties like OdataNextLink
should be correctly represented without escaping.
var jsonString = await KiotaSerializer.SerializeAsStringAsync("application/json", result, false);
Tested again an idd it gives some more information now, if I request some fields, they are now also added to the reponse. But still all other information I'm still missing.
{
"hitId": "01K2KRWNAQYQUAB7MMDZHZV4Q2GHCWZY4M",
"rank": 1,
"resource": {
"@odata.type": "#microsoft.graph.driveItem",
"listItem": {
"id": "0028c410-8cfd-4f1e-9af2-1a31c56ce38c",
"@odata.type": "#microsoft.graph.listItem",
"fields": {
"title": "LaaS design workshop results"
}
}
},
"summary": "LaaS design workshop results xxxxxxxxxxxxxxx LaaS design workshop results 2024-08-01 Contact persons Name: xxxxxxxxxxxx Position: Infra \u0026 Security Architect E-mail: xxxxxx."
}
Describe the bug
When I perform a search on SharePoint using the SDK I get a incomplete response.
Returns:
When I use the API itself, I get folling reponse:
I'm using the same connection settings, tries with the official release of the SDK and the Beta version. But both have the same result. I really need the additional resource info on the files found.
Anybody an idea what the problem is?
Expected behavior
Getting the same response with the SDK as with the normal API call
How to reproduce
Run the code above and the same API call in Postman
SDK Version
5.56.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```Configuration
No response
Other information
No response