You are hereBlogs / Chris's blog / Microsoft CRM overridecreatedon

Microsoft CRM overridecreatedon


By Chris - Posted on 19 June 2008

We recently discovered a little-known feature of the Microsoft CRM API, the ability to create entities via the web service, but with a creation date in the past.

This is very useful for our Exonet to CRM importer, and it is now a standard feature.

Info is here: http://technet.microsoft.com/en-us/library/cc677122.aspx

One little gotcha we've noticed is that this particular field MUST be supplied to the CRM webservice in UTC, eg:

DateTime.UtcNow.ToString("u")

(If you wanted to send the current date)

Otherwise, it always seems to treat your local time as UTC time, hence the overridden date could appear to CRM to be in the future, and CRM will refuse to process the request.