Newer Version Available

This content describes an older version of this product. View Latest

Using the Process.PluginDescribeResult Class

Use the Process.Plugin interface describe method to dynamically provide both input and output parameters for the flow. This method returns the Process.PluginDescribeResult class.

We recommend using the @InvocableMethod annotation instead of the Process.Plugin interface.

  • The interface doesn’t support Blob, Collection, sObject, and Time data types, and it doesn’t support bulk operations. Once you implement the interface on a class, the class can be referenced only from flows.
  • The annotation supports all data types and bulk operations. Once you implement the annotation on a class, the class can be referenced from flows, processes, and the Custom Invocable Actions REST API endpoint.

Tip

The Process.PluginDescribeResult class doesn’t support the following functions.
  • Queries
  • Data modification
  • Email
  • Apex nested callouts

Process.PluginDescribeResult Class and Subclass Properties

Here’s the constructor for the Process.PluginDescribeResult class.
Here’s the constructor for the Process.PluginDescribeResult.InputParameter class.
Here’s the constructor for the Process.PluginDescribeResult.OutputParameter class.
To use the Process.PluginDescribeResult class, create instances of these subclasses.
  • Process.PluginDescribeResult.InputParameter
  • Process.PluginDescribeResult.OutputParameter
Process.PluginDescribeResult.InputParameter is a list of input parameters and has the following format.
For example:
Process.PluginDescribeResult.OutputParameter is a list of output parameters and has the following format.
For example:
Both classes take the Process.PluginDescribeResult.ParameterType Enum. Valid values are:
  • BOOLEAN
  • DATE
  • DATETIME
  • DECIMAL
  • DOUBLE
  • FLOAT
  • ID
  • INTEGER
  • LONG
  • STRING
For example: