I know, how to access to such a method: packageName.MyGlobalClass.doWork();
But what if our method gets a Wrapers parameters? Like this:
global with sharing class MyGlobalClass{
global static void doWork(List<WrapperClass> parameters){
//some logic is here
}
global class WrapperClass{
@InvocableVariable(required=true label='Id') global ID someId;
@InvocableVariable(required=true) global String stringValue;
}
}
How can I get this method? And set to Wrapper my parameter?
new packageName.MyGlobalClass.WrapperClass().stringValue = 'Hello'
; ?stringValue
with labels insideWrapperClass
.packageName.MyGlobalClass.WrapperClass wrapper = new packageName.MyGlobalClass.WrapperClass();
work? Is it just that you have only got constructors that take parameters?