You need to sign in to do that
Don't have an account?
Srinu@dreams
Try to access info. form sObj for which don't have permissions for user using trigger
* There are two sObjects A and B.
* For A sobject user has access, For B he dont have access.
* If he write a Trigger on A sobject which intern want to access B sObject What will happen
Triggers run in the system context (unless you hand over to a class decorated as 'with sharing') so I'd expect the trigger to be able to access object B as long as the user's license type covers that object.
All Answers
Triggers run in the system context (unless you hand over to a class decorated as 'with sharing') so I'd expect the trigger to be able to access object B as long as the user's license type covers that object.
Is it possible to write trigger inside an apex class?
No, you'd need to write the trigger in its own file, but that can simply hand over to an apex class.