3

I'm trying to test out the new scope attribute for the @AuraEnabled annotation that is supposed to be part of Summer '22, but the compiler doesn't seem to recognize it.

@AuraEnabled(cacheable=true scope=global)
public static void myMethod(){

Anyone had success with it? Reference: https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_EnhancementToAuraEnabledAnnotation.htm&type=5&release=238

1 Answer 1

3

It is scope='global', you have to enclose the word global within apostrophes. Also you need to use the version 55 to make it work.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .