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
RYakerRYaker 

problems in using describeObject in API 7.0 vs. API 5.0

According to what I read in the docs the calls should work the same describeObjectResult should include an array of the Fields[] in a given object. However if I use endpoint

https://www.salesforce.com/services/Soap/u/5.0

I get back a list of Fields[], and if I use endpoint

https://www.salesforce.com/services/Soap/u/7.0

Fields[] is a single field not an array.

I am using the API from the old PHP toolkit.
cwoodcwood
FWIW, I have the same problem, which forces me to use the v2.5 of the API instead of v6.0, which is probably sub-optimal.
RYakerRYaker
I dumped the incoming XML messgae and its there, but it seems like a parsing error in PEAR SOAP, that is putting the last element as the value of the array instead of aggregating all the elements as an array as it does in API 5.0.
SuperfellSuperfell
Have you tried the new PHP tools ?
RYakerRYaker
The server I have to do this on only has PHP 4.3.9 on it. Trying to get the server upgraded but need to make sure it won't break anyone elses production code.
cwoodcwood


SimonF wrote:
Have you tried the new PHP tools ?


I've got a good bit of code that relies on the old toolkit. Moving my code base to the "new" tools is one of those things I'm putting off for a lazy Sunday. :-) I've been hoping someone would come up with a fix for the old tools similar to the one that was posted about enabling multi-object RETRIEVE calls.