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
Vinny12Vinny12 

Why we use after triggers on cross objects??

Hello,

 

Why do we use after triggers especially for cross objects??

 

Any explanation would be appreciated 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
Vinit_KumarVinit_Kumar

In After Insert Trigger,the record is already committed to the Database and the Id of the record is already generated,if you want to access the Id of the record and want to perform some operation,you will have to use After Trigger.Also,you would not be able to update the record as the record would be in Read-only state.

All Answers

Vinit_KumarVinit_Kumar

In After Insert Trigger,the record is already committed to the Database and the Id of the record is already generated,if you want to access the Id of the record and want to perform some operation,you will have to use After Trigger.Also,you would not be able to update the record as the record would be in Read-only state.

This was selected as the best answer
Vinny12Vinny12

thanks for reponse.