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
TechnossusTechnossus 

How to get the Description of object?

Hi guys!!

I have created the custom object from the C# code into sales force, now I want to show the details of that Custom object on my application like Custom object name, label, description I got some solution regarding that "describeobject" but its don't have any property like description,, created by and modified by how I can do that,, I want load all the fields which saleforce shows in its UI.

 

 

thanks in Advance

Keyur PatelKeyur Patel

Hi,

 

Please try this code for get description of custom objects.

 

private void sObjectDescribe()
{
//Invoke describeSObject and save results in DescribeSObjectResult
DescribeSObjectResult dsr = binding.describeSObject("Account");

//Get value that indicates whether we can create a record
bool canCreate = dsr.createable;

//Get a field and save its name
String fldName = dsr.fields[0].name;
}

 

Please refer following links for more details.

 

http://www.salesforce.com/us/developer/docs/officetoolkit/Content/sforce_api_calls_describesobject.htm

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_custom_objects.htm

 

Regards,

Keyur Patel

TechnossusTechnossus

Hi Keyur,

 

Thanks for the reply, I think you did not get my question, I am saying how we can get the description field of any object, means name, scale, label all are the fields which I am getting in dsr but description how to get the decription field.

 

Cheers

Raman