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
JBallJBall 

Flex retrieve function

Is anyone else having problems with Connection.retrieve function in SFDC Flex? If I make an array of fields to retrieve greater than 1 in length (e.g. ['Name', 'Phone'] from Account), I get the following error:
 
fault from operation: (com.salesforce.results::Fault)#0
  detail = (null)
  faultcode = "soapenv:Client"
  faultstring = "Element {urn:partner.soap.sforce.com}ids invalid at this location"

I've tried several variations on the array, with the names in double-quotes, using an ArrayCollection.toArray, an array defined as above as the argument, and an array variable, all with the same results. The retrieve call works just fine for a fields array of length 1, however.

Thanks,
John
Ron HessRon Hess
This is a bug, one that i have fixed and released a new library to include

basicaly you now pass a string which is a list of fields, rather than an array of field names.
more like the AJAX toolkit is.

look for R 3_5 to have this fix.

Message Edited by Ron Hess on 06-14-2007 01:16 PM