Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Setting datetime returned by custom workflow as output to form field

$
0
0

Hi,

We have a custom workflow activity which returns the datetime output parameter. I have called this custom workflow activity within a workflow and then after getting the output parameter, I am setting the value to the datetime field on an entity form. It works fine if the output parameters returns the datetim value but if there is no value the output parameter is returning the default Datetime.Min value i.e. 1/1/0001 and thus while settng this value on an update entity step, crm fails to update with the error saying "The date/time format is not valid, or the value is outside the supported range."

How do I handle the null check or datetime.minimum check within a workflow or is there any other way to handle this scenario?


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>