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
SushupsiSushupsi 

saving the Account id while Creating a Contact from the backend.

Hi all,

 

I have a requirement of creating a contact and by default giving the mandatory field 'Account'

 

I am populating all the information like address , phone, email from a VF page, I have a field which actually indicates an Account for which the contact is being created.

 

if i have an id of account like a 15digit number and tried to store in the Contact.Account field it doesn't allow me.

 

When i try to store it in the contact.Account field it stores as empty :( :smileysad:, but it shows the id in the debug log ideally..

 

Any help is appreciated.

 

TIA

 

Best Answer chosen by Admin (Salesforce Developers) 
jkucerajkucera

Store it in:

 

contact.AccountID

 

I find the API guides the best for confirming field names & other info when problems like this arise:

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

All Answers

jkucerajkucera

Store it in:

 

contact.AccountID

 

I find the API guides the best for confirming field names & other info when problems like this arise:

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

This was selected as the best answer
SushupsiSushupsi

Sorry for delayed reply. But your a genius :):smileyvery-happy: