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
AlSawtoothAlSawtooth 

Access a boolean from another (packaged) class?

I'm writing a trigger to sidestep an error from a packaged class. The package class includes the variable
public static boolean RIP = false;

then, the packaged code does some stuff and eventually throws an error if RIP = false. I'm writing some code to basically mimic (and improve!) the packaged code, but I don't know how to include the RIP variable in my code so that I don't get the error message (since it defaults to false). Does that make sense?

If I try to call the class.variable, I get a compile error saying the variable doesn't exist (I assume because it's packaged code?).

Thank you!
mjohnson-TICmjohnson-TIC
If it is a managed package you cannot access the apex code.
AlSawtoothAlSawtooth
Is there any way that I can get around the error message? (Like, if this is the error, then skip it?)

Thanks!