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
Vidya BhandaryVidya Bhandary 

change contact class name

Can the class name for "Contact" be changed in salesforce ? I want to extend the object definition for Contact with some custom fields ( instead of creating a custom object ) and then call Contact from Apex code.  

 

Vinita_SFDCVinita_SFDC
Hello,

Unfrotunately it is not  possible to change the class names of standard objects. Can you elaborate what problem are you facing if you use standard class name or what are you trying to implement.

vidya.bhandary1.3896010945863862E12vidya.bhandary1.3896010945863862E12
I am just staring out with some customization for  a new application that I am trying to implement in salesforce so wanted to extend the Contact class.

I noticed that the Name was a concatenation of First name and Last name as per documentation but it is shown grouped under "Saluation" field. How is this possible ? Can I create a field like this ?
Vinita_SFDCVinita_SFDC
Yes, you can create custom field. Extending standard classes(controller) is possible in apex controllers.

Refer: http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_extension.htm