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
ManishDhuparManishDhupar 

Previous value is retained on posting a blank string

Hi
 
I Create an account with Fax Field value i.e. (account.Fax ="123456";)
 
Then I upadate the same Account using the below with account.Fax ="" or null

QSFTest.Sforce.SaveResult[] saveResults = binding.update(records);

This empty string does not update the Fax field and previous value for Fax which is 123456 is reflected.

While updating if I want to replace the previous value of fax with null.

How do I achieve the same?

Do we have any such preferences?

Thanks,

Manish

 

 

 

 

 

 

SuperfellSuperfell
you need to use teh fieldsToNull property, e.g.

account.FieldsToNull = { "Fax" };