How to fix insufficient access rights on cross-reference id?
The error occurs due to insufficient permissions for "Authenticated Website" users, who have limited access compared to "Customer Portal Manager" users. Instead of using without sharing, configure sharing rules to provide access to Opportunities or use System.runAs with a user having proper permissions for specific…
Answered Dec 10, 2024 · 29.7K Views Read answer →