You need to sign in to do that
Don't have an account?
HarryH
describeGlobal call
Hi,
I would like to retrieve the system settings data of salesforce instance I am using . I know that describeGlobal() call is able to return those data. But does anyone know how can I use this call ? In the Salesforce Developer Console , how can I write this call ? Or is there a easist way to use this call ? For instance, in unix we just need to write a command in the terminal.
Thanks
I would like to retrieve the system settings data of salesforce instance I am using . I know that describeGlobal() call is able to return those data. But does anyone know how can I use this call ? In the Salesforce Developer Console , how can I write this call ? Or is there a easist way to use this call ? For instance, in unix we just need to write a command in the terminal.
Thanks
You can read different commands from here https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_schema.htm
Try this? (It counts the number of relationships for an object...)
Click the name/setup area and select Developer Console.
A new window will popup - click Debug and click the first choice (Open Execute Anony...)
Paste your commands in ... Check the "open log" and then hit execute.
Once the code runs, it'll open the log file. You can check the only debug output on it to show only the debug messages...
If this helps, consider marking it the answer?
I check the description ofDescribeSObjectResult :
https://www.salesforce.com/developer/docs/api/Content/sforce_api_calls_describesobjects_describesobjectresult.htm
Not sure which field is the one for salesforce instance basic information.
I guess I'm just not sure what information you are actually looking for...
Basically, the DescribeGlobal call is an API call that returns what sObjects are available in the Salesforce ORG.
The Schema.getGlobalDescribe() is the equivalent function that you can run from inside APEX language.
<result>
<encoding>UTF-8</encoding>
<maxBatchSize>200</maxBatchSize>
<types>Account</types>
<types>AccountContactRole</types>
...
something likes the "encoding", "maxBatchSize", etc.
Thanks