Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Using the Process.PluginResult Class
The Process.PluginResult class returns
output parameters from the class that implements the interface to the
flow.
You can instantiate the Process.PluginResult class using one of the following formats:
- Process.PluginResult (Map<String,Object>)
- Process.PluginResult (String, Object)
Use the map when you have more than one result or when you don't know how many results are returned.
The following is an example of instantiating a Process.PluginResult
class.
1string url = 'https://docs.google.com/document/edit?id=abc';
2 String status = 'Success';
3 Map<String,Object> result = new Map<String,Object>();
4 result.put('url', url);
5 result.put('status',status);
6 new Process.PluginResult(result);