Skip to content

Commit

Permalink
upgraded the protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Kozlov committed Dec 5, 2024
1 parent bde7f4f commit 139d29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FunctionApp/Dynamics365/CRM/HttpClientProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public HttpClientProvider(IOptions<AppSettings> settings)
public HttpClient Create()
{
var client = new HttpClient(new OAuthMessageHandler(_azureAppSettings, new HttpClientHandler()));
client.BaseAddress = new Uri($"{_azureAppSettings.DynamicsUrl}/api/data/v9.1/");
client.BaseAddress = new Uri($"{_azureAppSettings.DynamicsUrl}/api/data/v9.2/");
client.Timeout = new TimeSpan(0, 2, 0);
client.DefaultRequestHeaders.Add("OData-MaxVersion", "4.0");
client.DefaultRequestHeaders.Add("OData-Version", "4.0");
Expand Down

0 comments on commit 139d29d

Please sign in to comment.