Forum Discussion
RandyArmstrong
Jan 10, 2024Copper Contributor
Get CallTranscript, Docs do not match current API, Cannot set file type.
This code worked until I updated to the latest library:
var istrm = await m_graphClient
.Users[admin.Id]
.OnlineMeetings[meeting.Id]
.Transcripts[transcript.Id]
.Content
.GetAsync();
Now I get this error:
Invalid format 'application/octet-stream, application/json' specified.
The say I should be able to set the format:
https://learn.microsoft.com/en-us/graph/api/calltranscript-get?view=graph-rest-1.0&tabs=csharp
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Users["{user-id}"].OnlineMeetings["{onlineMeeting-id}"].Transcripts["{callTranscript-id}"].Content.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Format = "text/vtt";
});
But the "Format" property is not defined in the version of the library I am using (5.38.0)
How can I fix? Seems like a bug in the release.
- Mike_YeagerCopper ContributorI'm having the same problem. Has this ever been solved?
- JimScheirerCopper Contributor
Mike_Yeager Not yet. I've been trying everything I possibly can to get it working. Quite frustrating
- Mike_YeagerCopper ContributorQuite frustrating! Intellisense says it's returning a Stream, so you would think 'application/octet-stream, application/json' would be correct, but the call fails. Frustratingly, I can get it to work in PostMan, but not with the SDK. I've even tried hacky things like r.QueryParameters.SetPropertyValue("$format", "text/vtt") and other variations.