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.ApprovalCapability

If a feed element has this capability, it includes information about an approval.

Subclass of ConnectApi.FeedElementCapability.

Property Name Type Description Available Version
id String The work item ID. The work item ID is null if there isn’t a pending work item associated with the approval record. 32.0
postTemplate​Fields List<ConnectApi.​ApprovalPost​TemplateField> The details of the approval post template field. 32.0
processInstance​StepId String The process instance step ID. The associated record represents one step in an approval process. 32.0
status ConnectApi.​WorkflowProcess​Status The status of the approval. 32.0