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
BussBuss 

Null value is not updating to Salesforce Contact from Java

Hi,

 

we have a java application which is connets to Salesforce. based on the some logic, I should set to Contact's Limit(Custom field- Integer type) field to "Null", then I have to update it using EnterpriseConnection. 

whereas i have updated from java as below

Contact.setLimit(null);

java Log shows null is assigned to Limit and succesful update command. but if i check in respective salesforce contact. it's not updated to null value.

 

whereas same code is working for all not null scenario's.

I have checked in salesforce there are no work flows and triggers not available on this field.

 

any help is appreciated.

 

Rgds,

Buss

 

 

SuperfellSuperfell

you need to set it via the fieldsToNull properties, e.g. contact.setFieldsToNull( new String [] { "limit" } );