Just ran across this bug which seems to be around for a while (It is present in 10.2.200 and 10.2.300 at least)
If you have a UD Field of data type (DateTime) or (Date) it appears that you cannot NULL out that date from a BPM and have it show refreshed on the screen without refreshing the screen.
Steps to Replicate
Create a Date or Date Time Field (UD)
Set the field on the UI of a form
Populate the field with a date and hit save
Write a BPM that sets that date to null
Go back to the screen and invoke the BPM
The BPM will run and the field will be nulled out (on the back end) but the UI will not report / refresh any changes
On the BPM it won’t let you do Set Field to DbNull It says DateTime? is not compatible with DbNull…
Maybe in custom code casting it to an object first? (Let me try)
then you are right, it needs to run the refresh command from customisation, it is the same on 10.1.400.20 as well i went round this by hiding the field after setting it to blank
@josecgomez - Was your problem that you cant set a Date or DateTime to null in a BPM?
Or that it isn’t reflected in the UI without a refresh?
While a MD does not allow setting a DateTime field to null, a DD does. So what might work as a hack would be to have a DD that monitors for a specific date (like 11/24/1966) and then changes it to null when when it matches.
I thought I had ran into this before but I just tried it in 10.2.300.19 and it cleared just fine. I added a UD column on Company with a type of Date and null it, using set field, with a pre-processing directive on Update. No screen refresh needed. Seems like the same use case just possibly a different screen/method and version?