New Batch#100 (10th Nov 2021) - Salesforce Admin + Dev Training (WhatsApp: +91 - 8087988044) :https://t.co/p4F3oeQagK

Wednesday, 8 August 2012

Try to access info. form sObj for which don't have permissions for user using trigger

Question:
* 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?

Answer:
* 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.

Refer:
Click Here!

No comments:

Post a Comment

Labels