Activity Forums Salesforce® Discussions What is the use of @namespaceAccessible Annotation in Salesforce ?

  • Anuj

    Member
    September 3, 2020 at 3:03 pm

    This annotation provides enhanced support for accessing interfaces, properties, and abstract classes in second-generation packages.

  • Shweta

    Member
    September 3, 2020 at 6:11 pm

    @namespaceAccessible: This annotation makes public Apex in a package available to other packages that use the same namespace. Without this annotation, Apex classes, methods, interfaces, and properties defined in a 2GP package aren’t accessible to the other packages with which they share a namespace.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos