When we request a media, we always supply the id of the mediaItem and a format, either by
declaration on a class, using the
To get an id of a Format we need to request it using the Query
var client = ClientFactory.GetSdkClient(); var imageFormat = client.Query<ImageFormat>().Single(x => x.Width == 200 && x.Height == 100); var formatId = imageFormat.Id;
You will always get a matching format (a system format) that is created for you if no suitable format exists.