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
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
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