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
saustinsaustin 

describeSObjects describeSObject missing / not returning all fields

I'm trying to map a field using the API however the results from describeSObject does not return all of the fields.
 
my c# code...
Code:
            apex.DescribeSObjectResult[] describeSObjectResults = binding.describeSObjects(new string[] {"Case"});
            for (int x = 0; x < describeSObjectResults.Length; x++)
            {
                apex.DescribeSObjectResult describeSObjectResult = describeSObjectResults[x];
                // Retrieve fields from the results
                apex.Field[] fields = describeSObjectResult.fields;
                // Get the name of the object
                String objectName = describeSObjectResult.name;
                // Get some flags
                bool isActivateable = describeSObjectResult.activateable;
                // Many other values are accessible
                if (fields != null)
                {
                    // Iterate through the fields to get properties for each field
                    for (int i = 0; i < fields.Length; i++)
                    {
                        apex.Field field = fields[i];

                    }
                }
            }

 
I copied it from the describeSObjects()  online refrence.
 
This example is on the "case" object and the field that is missing is "Internal Comments" Text Area(4000) .
 
This is on a developer account and im using the partner WSDL.
 
 
thanks in advance!
 
Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
Its not missing, you'll notice that if you enter text in the internal comments field and hit save, when you get back to the case detail screen, there's no internal comments field, instead there's a new private case comment record with the text entry. So you can find these comments in the CaseComment sobject.

All Answers

SuperfellSuperfell
Its not missing, you'll notice that if you enter text in the internal comments field and hit save, when you get back to the case detail screen, there's no internal comments field, instead there's a new private case comment record with the text entry. So you can find these comments in the CaseComment sobject.
This was selected as the best answer
saustinsaustin
Yep, that's what I was missing. Thank you, very much!
 
Simon, I owe you a cold one.
 
Scott