+ Start a Discussion
Mj12Mj12 

When to use the "sObjects" syntax

hi,

 

are there any chances that we must use the sObject syntax instead of just instantiating an object?

(ex. Account a;)

 

it would be a great help if you can provide a scenario. i had just read the use of sObject recently and i still cant

get it. im just sure that using this will provide a better code in apex.

 

 

Thanks in advance,

 

mjpogiako

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

 

for sObjects and its syntax refer the below link

 

http://sfdc.arrowpointe.com/2011/03/28/cloning-records-in-apex/

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.