To ensure that remote actions work as expected after you migrate from Omnistudio for Managed Packages to Omnistudio, update any Apex classes used in remote actions with the correct syntax.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
In custom runtime, you implement the VlocityOpenInterface class in any Apex class that uses remote
actions.
In standard runtime, you implement the System.Callable class.
-
Replace any instances of
VlocityOpenInterfacewithCallable. -
Add this code to the class.
public Object call(String action, Map<String,Object> args) { Map<String,Object> inputMap = (Map<String,Object>)args.get('input'); Map<String,Object> outMap = (Map<String,Object>)args.get('output'); Map<String,Object> options = (Map<String,Object>)args.get('options'); return invokeMethod(action, inputMap, outMap, options); }