Notifications
Clear all

How did this error occur?

1 Posts
1 Users
0 Likes
114 Views
(@salterslloyd)
Posts: 746
Noble Member
Topic starter
 

After testing and deploying a new trigger that does creates a related order when a opportunity is closed, the Architect begins complaints of permission error messages appearing when closing an opportunity.

How did this error occur?

  • A . The trigger should be using RunAs() when creating the order.
    B. Trigger is using IsCreateable() Apex method and the user doesn't have create permission on the Oder object.
    C. The trigger handlers class does not use any sharing keywords and the user not have access to the orders related to the opportunity.
    D. The trigger handler class is using ''with sharing'' and the user does not have access to the orders related to the opportunity.

Show Answer Hide Answer

Suggested Answer: D
 
Posted : 29/01/2023 5:00 am

Latest Salesforce Sharing and Visibility Architect Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: