You need to sign in to do that
Don't have an account?
jucuzoglu
How to list the meta data using SOAP / PHP
Is there a way utilizing the PHP API to read an objects schema and list its meta data.
I would like to be able to pass an object name and see all of the field names and their types and even better if the type happens to be a picklist to determine what the available options are.
Can someone point me in the right direction or provide a sample?
What about soemthing like this:
$client would be your connection object to salesforce
~Mike
All Answers
The describeSObject method is available to do just that. It returns all the fields - with types, picklist values, etc.
Once logged in, an example call is:
$desc_obj = $sf_connection->describeSObject($sf_object);
Regards
Colin G
What about soemthing like this:
$client would be your connection object to salesforce
~Mike