+ Start a Discussion
suresh bangaloresuresh bangalore 

About salesforce object

I am new in salesforce assist me
If I create  a object then how to write a code for that using salesforce 
Best Answer chosen by suresh bangalore
Mahesh DMahesh D
Hi Suresh,

Generally an object will have a trigger concept where-in if you are performing any of the operations (insert, update, delete, undelete) then the trigger will automatically fires and will execute the apex code inside the trigger.

please go through the documentation on APEX and you will understand it clearly.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_intro.htm

Regards,
Mahesh

All Answers

Mahesh DMahesh D
Hi Suresh,

Generally an object will have a trigger concept where-in if you are performing any of the operations (insert, update, delete, undelete) then the trigger will automatically fires and will execute the apex code inside the trigger.

please go through the documentation on APEX and you will understand it clearly.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_intro.htm

Regards,
Mahesh
This was selected as the best answer
Nagendra Prasad ChNagendra Prasad Ch
You can start your code with Triggers. Go through the following tutorials for basic trigger, apex concepts and simple examples.

https://developer.salesforce.com/docs/atlas.en-us.200.0.apexcode.meta/apexcode/apex_qs_customobject.htm
https://developer.salesforce.com/docs/atlas.en-us.200.0.apexcode.meta/apexcode/apex_qs_class.htm
https://developer.salesforce.com/docs/atlas.en-us.200.0.apexcode.meta/apexcode/apex_qs_trigger.htm
https://developer.salesforce.com/docs/atlas.en-us.200.0.apexcode.meta/apexcode/apex_qs_test.htm