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.

ConnectApi.BatchInput

Construct a set of inputs to be passed into a method at the same time.
Use this constructor when there isn’t a binary input:
1ConnectApi.BatchInput(Object input)
Use this constructor to pass one binary input:
1ConnectApi.BatchInput(Object input, ConnectApi.BinaryInput binary)
Use this constructor to pass multiple binary inputs:
1ConnectApi.BatchInput(Object input, List<ConnectApi.BinaryInput> binaries)

The constructors takes these parameters:

Argument Type Description Available Version
input Object An individual input object to be used in the batch operation. For example, for postFeedElementBatch(), this should be ConnectApi.FeedElementInput. 32.0
binary ConnectApi.BinaryInput A binary file to associate with the input object. 32.0
binaries List<ConnectApi.BinaryInput> A list of binary files to associate with the input object. 32.0