Ben Tanner
05/07/2021, 9:57 PMSelectCustomFieldRef myCustomField = new SelectCustomFieldRef { scriptId = "custentity_mycustomfield", value = new ListOrRecordRef { name = string.Empty } };
I tried setting value to null but found it's required. I've tried passing an empty ListOrRecordRef
object. I've tried setting the name and internal id properties with null and empty strings. So far nothing has worked. What am I missing?Ben Tanner
05/07/2021, 10:53 PMnullFieldList
property which clears values from both standard and custom fields. That is exactly what I needed. It should have been easier to find in the documentation rather than a mention in a random forum post somewhere.
At least I have a solution.Mike Robbins
05/07/2021, 10:53 PMnullFieldList
property. In C# it looks something like this:
task.message = null;
task.nullFieldList = new string[] {"message"};
battk
05/08/2021, 5:02 AMbattk
05/08/2021, 5:03 AM