Activity Forums Salesforce® Discussions What is the use of access=“global” in salesforce?

  • Yogesh

    Member
    October 14, 2019 at 5:57 am

    Hello,

    access=” global” – This means the method or variable can be used by any Apex code that has access to the class, not just the Apex code in the same application. This access modifier should be used for any method that needs to be referenced outside of the application, either in the SOAP API or by other Apex code. If you declare a method or variable as global, you must also declare the class that contains it as global.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos