1

Hi I have a managed package installed in an org with several global classes. Which are documented as the following:

Apex class - global with sharing class FeatureConsoleService

Method of Class - global static namespace.FeatureConsoleService.ActivationResponse enable(Id recordId)

How would I call/execute this method from the anonymous Apex window?

Thanks

1
  • 1
    Did you try as below namespace.classname.methodname(); If any input parameters there you have to add parameters as well Feb 20 at 12:52

1 Answer 1

2

Use the following syntax for invoking a method that is defined in a managed package.

namespace_prefix.class.method(args)

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_namespace_prefix.htm

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .