function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EJEJ 

Clearing a Text Area field via the API.

I'm trying to clear a Text Area field on an object and save the change but Update() isn't actually updating the object in salesforce (though it runs without error).  Here's basically what I'm doing:

sfObject.Field = "";

sfObjects.Add(sfObject);

salesForce.Update(sfObjects);

I know my code works properly since it does update SalesForce when I change the "" above to "Test".  I've also tried setting the value to null to no affect.  Do I need to set it to a space, set another property or call some other method?

Thanks,

E.J. Wilburn

SuperfellSuperfell
you can't clear the value this way, you need to use the fieldsToNull array.

Message Edited by SimonF on 05-25-2005 06:09 PM