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
Joseph FerraroJoseph Ferraro 

Asynchronous apex security question (@future keyword)


I moved one of our apex classes to the @future keyword to alleviate some issues we were having with governor limits. However, now I'm receiving script exceptions referencing the INSUFFICIENT_ACCESS_OR_READONLY error. Does the @future keyword ignore object access/security like regular apex classes?

Thanks in advance.

Ron HessRon Hess
check that the apex class is enabled for the profile you are running this as.

while apex code can run at admin level, it (each class) is enabled on a per profile basis.
Joseph FerraroJoseph Ferraro
Ron, thanks for the reply. Yes, the apex class is enabled for all profiles.
Joseph FerraroJoseph Ferraro
does anyone have an idea why this is happening?