Are the DateTime objects returned from the Dynamics CRM web API always in UTC and where is that documented?
I am using the CRM SDK nuget package. I've read on several blogs (by CRM shops) that the CRM API always returns UTC DateTime objects and I have experienced that the DateTime.Kind is always UTC (from my testing) but I need to know for sure.
The CRM is 2015 if that matters.
I am calling a Dynamics CRM web services with the following code.
var querybyattribute = new QueryByAttribute()
{
EntityName = Opportunity.EntityLogicalName,
ColumnSet = new ColumnSet(true)//all columns
};
querybyattribute.Attributes.AddRange(attributeName);
querybyattribute.Values.AddRange(attributeValue);
And then calling RetreiveMultiple
EntityCollection entities;
using (var proxy = new ManagedTokenOrganizationServiceProxy(serviceManagement, credentials))
{
entities = proxy.RetrieveMultiple(query);
}