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
TracMikeLTracMikeL 

Managed App - Execute Global Method in System Log

Hey Guys, Whats the syntax for executing the below managed global method via the System Log?

 

Name: trac_All_Sales_Budget

Namespace Prefix: tracSB

 

global class trac_All_Sales_Budget

static void CreateBudgets()

 

Ive tried tracSB__trac_All_Sales_Budgets.CreateBudgets();

 

Does not work. Any ideas?


DevAngelDevAngel

Hi TSM_Marmot74,

 

Did you try to execute without using the namespace?  That seemed to work for me.

 

Cheers

ca_peterson_oldca_peterson_old

If you do want to specify the namespace of an apex class it's done with the syntax of namespace.class rather than namespace__class as it is with sObjects.

 

So in your case it would be tracSB.trac_ALL_Sales_Budget.CreateBudgets().