global class getData implements omnistudio.VlocityOpenInterface{
global Boolean invokeMethod(String methodName,
Map input,
Map outMap,
Map options
) {
if(methodName == 'TakeAccount'){
TakeAccount(input , outMap,options );
}
return true;
}
private void TakeAccount(Map input,Map outMap,Map options){
List Acclist = [ select Id ,Name from account limit 5];
outMap.put('result',Acclist);
}
}