Consider the following scenario, I want to update an entity (eg work order) on a value that is a reference, that is conditionally mandatory.
Eg, I have a custom field name change status reason that is conditionally mandatory based on the value of msdyn_systemstatus.
Since is a reference, the value is of the form dot_workorderstatusreasons(%GUID%) where GUID is a variable.
If I want to clear the value, I simple pass the function null instead of dot_workorderstatusreasons(%GUID%)
Where is the catch? If I set a character variable to NULL and pass it on the value of the field then it doesn't work!!!! WHY?
Ok, there is a work around to check if I had a guid and depending on this do either a update a row passing dot_workorderstatusreasons(%GUID%) or update a row passing the function null, however this is frankly moronic, since supposedly passing a string variable set to function null should be the same!!!!!