V,
Can I see more of your code? You can PM me with it if you do not want to post it in the open
~Mike
Hi,
I'm implementing Salesforce PHP MySQL Database Replication Tool
Everything seems to go OK until Objects (Tables) are going through the fields.
$result = $client->describeGlobal();
foreach ($result->types as $objectType)
I'm getting this error:
Notice: Undefined property: stdClass::$types in C:\Development\http1\repo\salesforce\php\accounts. html on line 52
Warning: Invalid argument supplied for foreach() in C:\Development\http1\repo\salesforce\php\accounts. html on line 52
I've looked at results returned by describeGlobal and types are not specified, so instead of types I've used sobjects as specified in result,
that allows my to bypass above error but then I'm not able to get results from describeSObject.
output from describeGlobal
stdClass Object
(
[encoding] => UTF-8
[maxBatchSize] => 200
[sobjects] => ArrayAm I doing something wrong?
Thanks,
V.
V,
Can I see more of your code? You can PM me with it if you do not want to post it in the open
~Mike
change
toCode:foreach ($result->types as $objectType)
Code:foreach($result->sobjects as $obj) { echo $obj->name . "\n"; // e.g. 'Account' }
Last edited by phpandsfdc; 12-05-2009 at 02:38 PM.
Bookmarks