I have a Salesforce
object, lets say Contact.
If I try to set the Name field by using code:
Contact testAccount = new Contact();
testAccount.Name ='TestAccountContact';
insert testAccount;
It gives an error:
Line: 2, Column: 20 Field is not writeable: Contact.Name
By navigating the object through Salesforce I find that Name is a combination of FirstName, LastName.
How can I determine if the field is writeable and if not get the componenets of that field that together represent it. In this case FirstName and LastName cconcatenated makes up Name.