You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the meantime, you could probably work around this by doing the following.
SerializationWriterFactoryRegistry.DefaultInstance.ContentTypeAssociatedFactories["application/json"]=newJsonSerializationWriterFactory();// don't serialize null valuesvarrequestBody=newApprovalItem{DisplayName="Title of approval 22",Description="Details",ApprovalType=ApprovalItemType.Basic,AllowEmailNotification=true,AllowCancel=true,Approvers=newList<ApprovalIdentitySet>{new(){OdataType=null,// set value to null so that its ingored.User=newIdentity{Id="9a033c37-4b75-4a89-87f6-8cd7f5b66026",DisplayName="Alex Wilber"},}}};
Describe the bug
I submit a new approvalitem. The api response that the message are malformed or incorrect.
The body of the request looks like following json. The problem is that there is an additional odata type information.
Expected behavior
Ignore the odata type by converting the object to a json string
"@odata.type": "#microsoft.graph.approvalIdentitySet",
How to reproduce
SDK Version
5.86.0
Latest version known to work for scenario above?
No response
Known Workarounds
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: