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

A trigger question

I read the apex developer's guide and at  the bulk trigger part found this "

The code block of a trigger cannot contain the static keyword.Triggers can only contain keywords applicable to an inner

what does this mean?



It refers to the word "static"


you cannot write static functions/variables within triggers. The ff. example will produce a compile error...



trigger accountTrigger on Account (before insert) 
    static String strValue;