Activity Forums Salesforce® Discussions How to call a class and its methods using a trigger in Salesforce?

  • Aditya

    Member
    April 27, 2020 at 4:28 pm

    //Class..
    public class MyClass{
    public static void TestMethod(){
    //Your code in the class
    }
    }

    //trigger
    Trigger testTrigger on Account(before insert){
    MyClass.TestMethod();
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos