PubSubConsume

Task to consume salesforce messages with a Pub/Sub API

Task version: 1.0.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Source code: https://github.com/FrendsPlatform/Frends.Salesforce/tree/main/Frends.Salesforce.PubSubConsumearrow-up-right

Task Parameters

Name
Description

TopicName : String

Salesforce topic name to subscribe to e.g., /event/My_Event__e or /data/AccountChangeEvent.

Default: - Example: /event/My_Event__e

NumberOfEvents : Int32

Maximum number of events to receive before the task returns.

Default: 1 Example: 10

ReplayPreset : ReplayPresetOption

Replay the starting point for the subscription.

Possible values:

  • Latest: Replay the starting point for the subscription.

  • Earliest: Replay the starting point for the subscription.

  • Custom: Replay the starting point for the subscription.

Default: 0 Example: Latest

ReplayIdBase64 : String

Base64 encoded replay ID to continue from when ReplayPreset is Custom.

Default: - Example: AAABBBCCC==

WaitTimeoutSeconds : Int32

Maximum time to wait for events before returning. Use 0 to wait infinite or until the Frends cancellation token cancels the task.

Default: 30 Example: 30

Task Result

Name
Description

Success : Boolean

Indicates if the task completed successfully. Example: true

TopicName : String

Topic that was consumed. Example: /event/My_Event__e

EventCount : Int32

Number of events returned in the Events collection. Example: 3

TimedOut : Boolean

Indicates whether the local wait timeout elapsed before the requested event count was reached. Example: false

LatestReplayIdBase64 : String

Latest replay ID reported by Salesforce, encoded as Base64. Example: AAABBBCCC==

Events : List<ConsumedEvent>

Events returned by the subscription. Example: object[] { object { string EventId, string SchemaId, string ReplayIdBase64, string PayloadBase64 } }

Error : Error

Error that occurred during task execution. Example: object { string Message, Exception AdditionalInfo }

Task Changelog

Changelog for Task Frends.Salesforce.PubSubConsume.

[1.0.0] - 2026-04-26

Added

  • Initial implementation

Last updated

Was this helpful?