You need to sign in to do that
Don't have an account?
Claiborne
Query Problem - sforce Toolkit
When I perform a query with lots of fields, the result object is coming back with the "any" field being an array instead of a string. I have built a work-around by modifying the ConvertAny function to build a string by contatenating the array elements into a single string.
Is there something causing this problem?
When I make the following query
"Select Id, BillingState, BillingCity, BillingStreet from Account"
the results for the last 3 query fields are concatinated into a string
and returned in the [any] field.
An example of an object returned:
stdClass Object
(
[type] => Account
[Id] => Array
(
[0] => 0015000000EmggxAAB
[1] => 0015000000EmggxAAB
)
[any] => ONOttawa77 Metcalfe St.
)
Also is the Id supposed to be returned as a 2 element array?
Thanks
Mike
Message Edited by mharley on 07-04-2006 03:34 PM
The results you are getting are correct.
What you want to do is convert the returned result to an SObject,
Typically, the code looks like this:
Code:
Hope this helps.