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
KunlunKunlun 

What is the api field xxx__cSpecified?

Hi All,

 

I'm doing a project with SFDC api, to upload object values. See some objects have fields as xx__cSpecified, which is a bool type.

 

If there si  a field a__c, there should be a new field a__cSpecified

 

b__c, b__cSpecified

c__c, c__cSpecified.

 

if I upload a field value to SFDC, I ned to write

 

obj.a__c = "xx";

 

Should I set value for a__cSpecified? such as below code:

obj.a__cSpecified = true;

 

Thanks

Kunlun

Best Answer chosen by Admin (Salesforce Developers) 
Imran MohammedImran Mohammed

You should set the xx_cSpecified field to true.

By default the xx_cSpecified fields are set to false.

 

If you want the value of field xx_c to be part of the soap message, then the xx_cSpecified field should be set to true, else it will not be part of SOAP message.

All Answers

Imran MohammedImran Mohammed

You should set the xx_cSpecified field to true.

By default the xx_cSpecified fields are set to false.

 

If you want the value of field xx_c to be part of the soap message, then the xx_cSpecified field should be set to true, else it will not be part of SOAP message.

This was selected as the best answer
KunlunKunlun

Thanks very much.

 

Can you tell me why there are these fields xx_cSpecified? Is there some way to remove or create them in SFDC?

SuperfellSuperfell

This are generated by .NET based on the types in the WSDL, its not part of the SOAP api, its part of the .NET Web services internal API.

KunlunKunlun

Got it, is there a way to set all them to true? It is too much work to set them one by one.