You can invoke External Services' registered actions from Omnistudio Integration Procedures in OmniScripts and FlexCards.
To invoke External Services' registered actions with Omnistudio Integration Procedures,
first create a custom Apex Class that implements the
System.Callable interface. Create the class with
methods and parameters, and then call the External Services API. For example:
public with sharing class RemoteActionClass implements System.Callable
{
public Object call(String action, Map<String,Object> args)
{
Map<String,Object> inputMap = (Map<String,Object>) args.get('input');
Map<String,Object> outputMap = (Map<String,Object>) args.get('output');
Map<String,Object> options = (Map<String,Object>) args.get('options');
action == 'methodName'
Object result = Call External Services API;
outputMap.put('result', result);
return outputMap;
}
}
Then use an Integration Procedure to call an External Services invocable action with a Remote Action.