Get CallTranscript, Docs do not match current API, Cannot set file type.

Copper Contributor

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.

4 Replies
I'm having the same problem. Has this ever been solved?

@Mike_Yeager Not yet.   I've been trying everything I possibly can to get it working.   Quite frustrating

Quite 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.

@Mike_Yeager I went as far as to download the solution from github and update the code to correctly allow for a format parameter.  Compile it with the .net cli (not documented anywhere), which requires the out of support .net5.0 taret framework and still it doesn't work.   I read another article showing a work around, but that didn't work either.