Hi Experts,
Using CRM web api to retrieve the documentbody from annotation, looking to retrive bigger files till 128MB, but getting internal server error 500 for file around 90 MB, able to response for files around 70mb
Can you please help if i am missing something here
Here is the code
string getRequest = "api/data/v9.0/annotations("+ noteId + ")?$select=filename,filesize,documentbody";
string baseaddrr = "">myorg.crm.dynamics.com/";
httpClient.BaseAddress = new Uri(baseaddrr);
httpClient.Timeout = new TimeSpan(0, 8, 0);
httpClient.DefaultRequestHeaders.Add("OData-MaxVersion", "4.0");
httpClient.DefaultRequestHeaders.Add("OData-Version", "4.0");
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
httpClient.DefaultRequestHeaders.Add("Prefer", "odata.include-annotations=OData.Community.Display.V1.FormattedValue");
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", result);
var responseMessage = await httpClient.GetAsync(getRequest).ConfigureAwait(false);
//HttpResponseMessage responseMessage = t.;
if (responseMessage.IsSuccessStatusCode)
{
}

Report
All responses (
Answers (