Notifications
Announcements
Hi,
Is there a way clear a date field in CDS using flow?
Use Case:
Book due Date = 2/24/2020
I need to clear the date and set it back to blank (---)
Thanks for the help
Max Tampa
@Jcook
Hi Josh,
I tried the space and got the following error
{"error":{"code":"0x80040239","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","innererror":{"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",
@MaxPP
What about if you try to use the expression null?
—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others
Hi Josh, same error with null expression
@MaxPP - I just tested using NULL from an Expression to clear the field and it works just fine...IF you use the newer Common Data Service (current environment) connector. The only way you can use this connector is to create the flow from a Solution.
Within Power Automate, click on "Solutions" on the left-hand side. Fill in all the appropriate information to create the Solution. Once created, open the Solution, then click "+New" at the top and choose "Flow". This will launch a new browser tab. In the search field when searching for connectors, type in "Common Data Service". You will see 2 listed...be sure to choose the one called "Common Data Service (current environment)".
By using this new connector, there are other things to be aware of, but that can be addressed if needed.
@PowerBack19
I am not sure why I do not see the (current Environment connector). I created a solution and then added a new flow from inside the solution.
Thanks
Max
You wont be able to add the Flow to the solution..
The only way would be to create a New Flow inside the solution.
—JoshIf you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others
My Original flow was created inside the solution. What is the expression syntax you are using to set the null?
Has anyone actually got this to work? It seems incredible that something so easily achieved in a Standard Workflow can't be done in Flow or Logic Apps.
I have (like others) tried all variants of Null including the Expression with the various CDS connectors and none of them seem to work.
Looks like I am going to have to resort to creating a Flow for part of my update then trigger a Workflow to clear the fields afterwards unless anyone can help.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 538 Super User 2025 Season 2
Tomac 405 Moderator
abm abm 252 Most Valuable Professional