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
Marat KalibekovMarat Kalibekov 

returnFieldDataTypes in CallOptions

Hello, in SOAP for CallOptions I can specify parameter returnFieldDataTypes (boolean). But when setting it to true following error occurs: 

INVALID_SOAP_HEADER: The header 'returnFieldDataTypes' is not a valid header for your organization.

SOAP API - version 36.0

Anyone have ideas?

 
Richard Jimenez 9Richard Jimenez 9
Hi Marat,

Are you using the Partner WSDL? The CallOptions is only available if you are using the Partner WSDL.

See https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_header_calloptions.htm for more details.

Thanks,
Richard.
Marat KalibekovMarat Kalibekov
Yes, it is Partner API.

 
Richard Jimenez 9Richard Jimenez 9
Have you tried version previous versions of the API?
Marat KalibekovMarat Kalibekov
Yes, I tried with v35, but there is no such property at all for CallOptions. As I understand it is new feature in v36. Setting it to false results in no error.

As I understand, it must instead of 
        <records xsi:type="sf:sObject">
          <sf:type>Account</sf:type>
          <sf:Id xsi:nil="true"/>
          <sf:Name>United Oil &amp; Gas Corp.</sf:Name>
        </records>
give us
        <records xsi:type="sf:sObject">
          <sf:type>Account</sf:type>
          <sf:Id xsi:nil="true"/>
          <sf:Name xsi:type="string">United Oil &amp; Gas Corp.</sf:Name>
        </records>

Something like this.
Query is - SELECT Name FROM Account.