Reply
Trusted Contributor
Kunlun
Posts: 180
0
Accepted Solution

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

Super Contributor
Imran Mohammed
Posts: 725
0

Re: What is the api field xxx__cSpecified?

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.

Regards,
- Imran
Trusted Contributor
Kunlun
Posts: 180
0

Re: What is the api field xxx__cSpecified?

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?

Moderator
SimonF
Posts: 7,984
0

Re: What is the api field xxx__cSpecified?

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.

Cheers
Simon
docs | blog | twitter
Trusted Contributor
Kunlun
Posts: 180
0

Re: What is the api field xxx__cSpecified?

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