Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I try to insert an empty value for a DateTime field. This field is optional in my action.
I call this action from a Logic App, through the HTTP Post step. In my body I have valid Json including the field: (this is a part of the complete message)
With all kinds of alternatives I tried, but every time I get tis error:
DateTime is less than minumum value supported by CrmDateTime. Actual value: 01/01/0001 00:00:00, Minimum value supported: 01/01/1753 00:00:00"
Sync workflow failed with error message - Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault] Message: DateTime is less than minumum value supported by CrmDateTime. Actual value: 01/01/0001 00:00:00, Minimum value supported: 01/01/1753 00:00:00
try to write null instead of ""
I have tried :
-"enddate": null as expression
- leave enddate out as parameter
All with the same result.
The only thing that works as a workaround is to use the Coalesce function and fill the date with a value of 1753-01-01 and use a post-action to clear this date. But I think that's a very dirty way of working.
I guess that the problem is that DateTime is not nullable and the default value is 01/01/0001.
You can add a new field in the action to distinguish if the datefield is filled or not and consequently update the CRM entity.
1. if the new filed "datepassed" is true and the field "enddate" is equal 01/01/0001 this means that in the action you have to pass "enddate" = null in the attribute collection, if "enddate" is <> 01/01/0001 you have to add "enddate" with the new datetime value
2. if the new filed "datepassed" is false you don't have to add "enddate" attribute to the collection.
It seems to be a mess but it should work... ;-)
Business Applications communities