Cirra AI Article
Salesforce Platform Event Triggered Flow Limits: Test Batches
Reference for salesforce platform event triggered flow limits in Winter '27: the documented 200-message Flow batch, 2,000 Apex trigger contrast, per-transaction limits and a burst-test fixture for 2026.

Summary
- 01Flow subscribers can receive up to 200 messages per batch. A separate transaction from the publisher does not establish one transaction per message or an exact partition of a burst.
- 02Keep Flow and Apex consumer limits separate: 2,000 is the Apex trigger default, and Salesforce does not document a Flow batch-size control.
- 03Interviews and downstream automation in the same subscriber transaction share governor limits. Publishing allocations and external delivery allocations are separate budgets.
- 04Test isolated, 10, 200 and 201 event bursts plus multiple publisher transactions. Use logs and record read-back to establish grouping, consumption and verified final effects.
- 05The article presents documentation and a proposed fixture, with no Salesforce org test or measured throughput, latency or success rate. Keep a bulk-safe Flow when evidence supports it; simplify or escalate when needed.
Inside this article
Executive Summary
A platform event (a message published to the Salesforce event bus) lets an administrator move heavy record processing out of a triggering Flow, but it does not give each message its own isolated allowance of limits. Salesforce's current subscription guide states that a platform event triggered Flow can receive a batch of up to 200 event messages at once and that the batch can contain messages from multiple publishers [1]. The Flow runs asynchronously in a separate transaction from the transaction that published the event [2]. Nothing in the documentation says that every message gets its own transaction, or how a specific burst will be partitioned. That grouping has to be observed in a sandbox, not inferred from the single $Record variable.
The figure of 2,000 that circulates in older tutorials is the Apex trigger figure. Salesforce documents a default batch of 2,000 for platform event Apex triggers [3], configurable from 1 through 2,000 with PlatformEventSubscriberConfig [4]. The reference pages describe that configuration object as applying to a platform event Apex trigger [5], and Salesforce does not document a batch-size control for Flows. A 2022 tutorial and an Apex Hours article still state 2,000 for Flows [6]; the current Salesforce page states 200. This report does not treat 200 as a Winter '27 change: Salesforce's Flow documentation carries no release annotation for it, and Winter '27 ships API version 68.0 [7].
Limits are counted per transaction [8]. Flow users meet 100 SOQL (Salesforce Object Query Language) queries, 150 DML (Data Manipulation Language) statements and 10,000 DML rows per transaction [9], and work done by other automation in the same transaction counts toward the same limits [9]. Event allocations are a separate budget: the hourly publishing allocation applies to every publish method, while the daily delivery allocation excludes Apex triggers and Flows [10].
The recommended decision path is evidence-led. Build a synthetic fixture, run isolated, 10, 200 and 201 event bursts plus multiple publisher transactions, and record logs, query and DML consumption, record IDs and timestamps. Keep the declarative Flow if it is bulk-safe and meets the requirement; reduce divergent branches first [11]; escalate to a developer when the evidence shows limit pressure or when recovery needs Apex controls such as retry and checkpoints [12]. No production throughput, latency or success-rate figures are available, and every worked row below is labeled fictional.
Introduction and Background
Salesforce administrators, operations teams and consulting partners often face the same situation: a record-triggered Flow works for one record and fails when a data load, integration or scheduled job touches hundreds. One practitioner guide puts the pattern bluntly: a Flow can run fine in a sandbox with 10 test records and then stop working at production volume [13]. A common proposal is to publish a custom platform event from the triggering Flow and let a second, platform event triggered Flow do the heavy work. The proposal is attractive because the subscriber runs outside the publisher's transaction. It is risky because "outside the publisher's transaction" is easy to misread as "one fresh transaction per message".
This report is a narrow reference and a proposed test fixture. It is not an implementation, a generic Flow tutorial, an email-deliverability article or a user-provisioning Mixed DML (mixing setup and non-setup object changes in one transaction) solution. Its question is simple: after a burst of events, is the subscriber still safe, and what evidence would justify keeping the declarative Flow or escalating the subscriber design to a developer?
Salesforce documentation, Trailhead and Salesforce Architects guidance supply the platform statements; practitioner posts supply context and show where older figures persist. Neither supplies runtime measurements for any org. This article is based on published documentation and was not tested in a Salesforce org, so every statement about observed batch grouping, consumption or failure behavior is a proposed test, not a result.
The practitioner context explains the design instinct. A named Salesforce practitioner describes using platform events so that each opportunity is processed individually, which avoids the CPU timeouts and flow element limits of one large transaction (Source: www.freelikeapuppy.tech), and notes that a separate transaction "opens up lots of possibilities" (Source: www.freelikeapuppy.tech). The test fixture below checks whether the instinct holds when the subscriber receives a batch rather than one message.
Key Changes in the Mental Model: Four Scopes, Two Consumers, Two Budgets
Change 1: One event, one interview, one transaction and one DML statement are different units
The first correction is vocabulary. A publisher transaction is the database transaction in which Apex, a Flow, an API call or another process publishes events. An event message is one published payload. A delivery batch is the group of messages the platform hands to a subscriber at once. A flow interview is one running instance of a Flow. A subscriber transaction is the database transaction in which the interviews for a batch execute. A bulk operation is a query or DML statement that serves several interviews at once.
Salesforce documents some of these boundaries and is silent on others. It documents that a Flow can receive a batch of up to 200 messages, that message order is preserved within each batch, and that the messages in a batch can come from multiple publishers [1]. It documents that each platform event triggered Flow or resumed interview runs asynchronously in a separate transaction from the publisher [1]. It does not document how a given burst, for example 201 messages from one publisher, is split into batches. That is the grouping that must be observed.
The Flow guide also warns that "there can be a delay" between publishing and evaluation [1], so publisher completion and subscriber completion are two separate timestamps. A Salesforce Architects decision guide adds that event-driven designs cannot guarantee a response time, and that publishers usually are not aware of the status of their subscribers [14]. When platform event triggered Flows, paused interviews and processes subscribe to the same event, Salesforce cannot guarantee which one processes a message first [15], so an inventory of subscribers matters before any test: a second subscriber changes what "final state" means.
The difference between an interview and a transaction is the heart of the matter. For a record-triggered Flow, Salesforce creates a separate flow interview for each record in the batch [11], yet governor limits apply to transactions, not individual Flow interviews, and many interviews may run inside the same transaction and share the same limits [16]. A flow interview is not a transaction [17]. Some elements end the current transaction and start a new one, such as screens, scheduled paths and pause actions [16] [17], and Trailhead notes that after such a stop a new transaction starts [9].
Table 1 below separates the scopes and states what each one supports and what it does not.
| Scope | What is documented | What it does not establish | How to observe it in the fixture |
|---|---|---|---|
| Publisher transaction | Events can be published through Apex, APIs, Flows and other processes; a successful publish call means the request is queued and the event is published asynchronously [18] | That the subscriber has run, or will run soon | Record the publisher commit timestamp and the transaction identifier from the publisher's debug log |
| Delivery batch | A Flow can receive up to 200 messages, in replay order, possibly from several publishers [1] | The exact split of a burst; the Flow guide states only a maximum | Count interviews that share one transaction in the Automated Process debug log [2] |
| Flow interview | Each interview runs in the context of the publishing user, so audit fields reference that user [1] | That one interview equals one transaction [17] | Log the correlation key at the first element of each interview |
| Bulk operation | Flow includes built-in protections such as auto-bulkification [19]; a practitioner guide says interviews reaching an identical Get Records element are merged into one query [11] | That work inside one interview's loop is consolidated [9] | Compare query and DML counts in the log with the number of interviews |
| Subscriber transaction | Work by other automation in the same transaction counts toward the same per-transaction limits [9] | Salesforce does not state which limit set applies to a platform event triggered Flow | Read the limit summary lines in the debug log and record them |
Read down the table and the same pattern repeats: the documentation gives an upper bound or a direction, and the log gives the actual grouping. The most consequential row is the last one. A subscriber transaction is where the Flow's interviews and any downstream record-triggered automation share limits, so a failure there can affect every interview in the group. Trailhead's example of a Flow called from Apex says the Flow fails along with the Apex class when the shared transaction exceeds a limit [9].
Change 2: 200 versus 2,000 are different consumer types, not a release change
The most common confusion in search results is the pair of numbers. The current Salesforce subscription guide for Flows says 200. Salesforce's Trailhead material on Apex triggers says the batch size in a platform event trigger is 2,000 event messages [20], and a practitioner article contrasts the normal Apex trigger batch of 200 with the platform event trigger maximum of 2,000 [21].
Older tutorials copy the Apex number into the Flow context. A 2022 tutorial states a Flow batch maximum of 2,000 [6], and an Apex Hours article states the same [15]. The honest reading is a source discrepancy on one figure, resolved in favor of the current first-party page. It is not evidence of a Winter '27 change: Salesforce's Flow documentation carries no release note for the 200 figure, and the Winter '27 administrator summary mentions platform event triggered Flows only in the context of the Edit History panel [22].
Table 2 summarizes consumer types, the documented maximum, the control, and what must still be verified. It deliberately leaves the "observed grouping" column unmeasured, because no org was tested.
| Consumer type | Documented maximum per delivery | Configurable control (exact source) | Transaction scope | Observed batch grouping | Verification required |
|---|---|---|---|---|---|
| Platform event triggered Flow | Up to 200 messages | None documented by Salesforce; a community reply says it cannot be set [23] | Separate from the publisher [2] | Not measured; to be observed | Flow log of interviews per transaction; limit summary |
| Platform event Apex trigger | Default and maximum 2,000 [3] | PlatformEventSubscriberConfig, batch size 1 through 2,000 [4] | Not in the same Apex transaction as the publisher | Not measured; runtime batches can vary from 1 to the ceiling [21] | Log of batch size per trigger run |
| External subscribers (CometD, Pub/Sub API) | Outside the scope of this article | Delivery allocation applies; Apex triggers and Flows are excluded from it [10] | Outside Salesforce transaction limits | Not applicable | Separate sourcing of allocations |
The interpretive point of Table 2 is the control column. Salesforce's configuration page says it lets you override the default running user and batch size of a platform event Apex trigger, and the Tooling API reference describes the object as configuration for a platform event Apex trigger [5]; the same configuration page says the object can be used in the Tooling API or Metadata API to override settings of a platform event Apex trigger [4]. A practitioner post's reply states that the configuration is available for Apex triggers but not for Flow triggers [23], though that statement is community-level and undated. Readers should never apply an Apex-only configuration to a Flow. If a Flow needs a different grouping, the documented options are design changes, not a batch-size setting.
Change 3: Publish timing decides whether the subscriber can see the publisher's data
A subscriber that reads records created or changed by the publisher depends on commit timing. Salesforce's event definition has a publish behavior. With Publish Immediately, a subscriber can sometimes receive the event message before the data is committed [18]; the event is published regardless of whether the publishing transaction succeeds [24], outside of a Lightning Platform database transaction. With Publish After Commit, the event is not published if the transaction fails [18] and it is rolled back with the transaction [21]. Salesforce's guidance for the case where a subscriber cannot find a not-yet-committed record is to publish after the trigger creates the record and the transaction commits [25].
"After-save" in a record-triggered Flow is not "after-commit". The fixture must therefore verify the configured publish behavior on the event definition rather than reasoning from the trigger type. The Architects guidance flags the related anti-pattern: published events with the Publish Immediately behavior are not covered by transaction rollback [14]. Two other points are worth stating. An Apex publish call on a Publish After Commit event counts as one DML statement against the DML limit, and a successful publish result reports queueing, not delivery or subscriber completion. A successful publish is therefore not subscriber completion, and the publisher and subscriber timestamps must be recorded separately.
Change 4: Failure is not the same for Flow and Apex subscribers
For Flows, the subscription guide says that if an event fails the flow does not start, so no flow error email is sent, and debugging means looking for errors generated by the platform event [1]. Debug logs for these Flows are displayed under the Automated Process user [2]. The absence of a Flow error email is therefore insufficient evidence of success, and the fixture must write its own evidence to an owned test record.
Apex triggers have documented controls that the Flow pages do not describe. Throwing EventBus.RetryableException resends all events in the batch [12], and a checkpoint resumes processing after the last successfully checkpointed message [26]. The Salesforce Architects decision guide adds that automatic retries are not native to Apex triggers and require complex custom logic [19], while Flow includes automatic retries as a built-in protection [19]. The Winter '27 administrator summary also says Flows now retry automatically on a record lock error during transaction initialization [22]; it does not say that this applies to platform event triggered Flows, so the fixture should test it, not assume it.
Replay is a further boundary. Salesforce states that platform events can be replayed through Pub/Sub API or Streaming API but not by Apex and other subscribers [27]. Events are stored for 72 hours [28] [18]. A practitioner article adds the plain warning that platform events do not guarantee delivery of an event [21]. Nothing here supports an exactly-once or guaranteed-delivery claim.
- Up to 200 event messages per batch; the maximum does not establish the exact split.
- Salesforce does not document a batch-size control for Flows.
- The default batch size is 2,000, configurable from 1 through 2,000.
- PlatformEventSubscriberConfig provides the Apex trigger batch-size control.
These are documented figures, not observed batch partitions. No org was tested.
They do not establish one transaction per message, an exact partition of a burst, or guaranteed completion.
Implementation Considerations and Process Changes
Step 1: Inventory the call graph before writing a test
Start with the practical decision: a Flow passes for one event and fails under many. The inventory is metadata work and can be assisted, but it cannot replace runtime observation. List:
- Publisher: the Flow, Apex class, API integration or process that publishes, and whether it publishes one event per record or a list.
- Event definition: fields, publish behavior (immediately or after commit), and any correlation key.
- Subscribers: every platform event triggered Flow, paused interview, process and Apex trigger on the event. A second Apex trigger on the same event receives every event, which causes duplicate processing unless parallel subscribers are configured [21].
- Active Flow: the active version number and its Flow API version, recorded from the sandbox, not from memory.
- Invocable actions and subflows: a platform event triggered Flow cannot call another flow using the Subflow element [29], so a call graph that assumes reuse through subflows needs redesign.
- Downstream automation: record-triggered Flows, Apex triggers, validation rules and duplicate rules on every object the subscriber updates, since that work joins the subscriber transaction.
- Loop risk: a Flow or process that publishes the same event it subscribes to can loop and exceed limits [29]; the Architects guidance is to make sure changes made while consuming an event do not result in publishing a new event [14].
Exclude setup-object provisioning and Mixed DML, which are covered elsewhere.
Step 2: Build a synthetic fixture with an explicit expected final state
Use a Winter '27 sandbox, not production, and record the sandbox release, the Flow API version and the active subscriber version. Flow tests can be created, saved and run in Flow Builder [30], but they complement, and do not replace, a burst test. The Architects guidance recommends a testing strategy where automated Apex tests run against any proposed change [19].
The fixture has five parts:
- Synthetic data: parent records and child records created for the test, with a test-only record type or name prefix.
- Custom event: a platform event with a correlation key field (for example a test run label plus a sequence number), a target record ID and a requested action code.
- Subscriber Flow: a platform event triggered Flow that performs one harmless deterministic update, such as stamping a test field with the correlation key.
- Result log: an owned test object that the subscriber writes to on success and on a controlled failure path, so that outcomes do not depend on Flow error email.
- Expected final state: computed from the distinct requested actions, not from the publish count, because several events can target the same record.
That last point deserves a worked example. (Hypothetical Example) If 201 events are published and they target 150 distinct child records, with 51 events being second requests for a record already in the set, the expected final state is 150 stamped records with the last-applied key, not 201 stamped records. The reconciliation is "distinct requested business actions equal verified final effects", and a mismatch is a finding to explain, not an assumption of loss.
Step 3: Run the burst plan and record what was observed
Submit the following inputs with the same publisher identity, then repeat with multiple publisher transactions. These are proposed inputs, not measured partitions. One practitioner source describes record-triggered Flows running across batches of up to 200 records per transaction [31], which is a different trigger type from a platform event. A practitioner guide makes the underlying point: a small test tells you nothing about what a Flow does at 200 [31], and its remedy is to load-test with Data Loader batches of 200 records [31].
- Isolated: 1 event, to establish the baseline log shape and consumption.
- 10 events in one publisher transaction.
- 200 events in one publisher transaction, matching the documented maximum batch.
- 201 events in one publisher transaction, one above the documented maximum.
- Several publisher transactions: for example 4 transactions of 50 events, because a batch can contain messages from multiple publishers.
A 201-event burst does not prove an exact 200-plus-1 split. If the platform delivered all 201 messages in a single stream at the documented maximum, at least ceil(201 / 200) = 2 batches would be needed. But the Flow guide states only a maximum, and an Apex-focused practitioner article advises thinking of a batch size as a maximum [21], with runtime batches that vary from 1 to the configured ceiling [21]. Salesforce's own configuration page says that for Apex triggers it may deliver smaller batches than the maximum depending on current load and buffering requirements [4]. For Flows the fixture must establish the actual grouping.
For each run, capture:
- Event receipt: the correlation key at the start of each interview.
- Flow logs: interview count per transaction, from the Automated Process debug log [2].
- Query and DML consumption: the limit summary lines for the subscriber transaction.
- Affected-record counts: the number of records actually changed, from read-back.
- Transaction identifiers: where the log exposes them.
Step 4: Add controlled divergence and downstream automation
Repeat the runs with controlled branch divergence: for example, 10 percent of events take a branch that adds a Get Records element, and another subset takes a branch that calls an invocable action. Then enable the downstream record-triggered automation identified in the inventory and repeat.
The purpose is to find where apparently simple work multiplies. Trailhead states that each Get Records element causes one query [9], that elements inside a loop run once for each record in the loop [9], and that a Create Records element in a loop runs one DML statement for every item [9]. A study guide describes the same rule as the golden rule of Flow design: never place Data elements inside loops [11]. Salesforce's Admin blog says never to run a repetitive DML operation inside a loop and to execute the DML once on the whole collection outside the loop [32], and Apex Hours gives the same rule for Get, Update, Create and Delete elements [30]. A practitioner guide to Flow limits also advises building record-triggered Flows as if they are for one record and letting Salesforce batch them [17].
(Hypothetical Example) Suppose each interview loops over 5 child records and has an Update Records element inside the loop. If nothing were combined across interviews, 200 interviews would issue 1,000 DML statements against a limit of 150 [9]. If the loop is redesigned to collect records and update once after it, so that the work reduces all of those DML statements to just one [9], the statement count per interview falls to 1 before any cross-interview combining. This is arithmetic on invented numbers, not a measurement.
Step 5: Inject failures and document what was committed
Introduce three controlled failures and record, for each, what was committed and what remains unknown:
- A deliberate subscriber failure: an invalid update on one event within a batch of 10. Record which of the other nine events' effects were committed. Trailhead's statement that a limit breach fails the Flow along with its calling Apex class suggests that a transaction-level failure can affect the whole group, but whether a fault in one interview affects its neighbors in a platform event batch is a test result, not a documented fact.
- A publisher rollback: publish, then force the publisher to roll back. With Publish Immediately the event is published regardless of whether the transaction succeeds [24]; with Publish After Commit it is not published if the transaction fails [18]. Run both and compare. The Flow Builder debug tool's rollback mode, which a study guide says automatically rolls back all database modifications at the end of the debug run, keeps debug data from piling up but does not exercise the asynchronous path [11].
- A delayed subscriber: deactivate the Flow, publish, then reactivate within the retention window, and record what the subscriber processed. Retention is 72 hours [28]; one practitioner article says events live in the event bus for up to 72 hours [21], and the reactivation behavior for a Flow is something the fixture must observe rather than assume.
Because delivery is not guaranteed and consumers in at-least-once systems can see the same message more than once, design the subscriber to be idempotent. A message-pattern reference notes that a broker with at-least-once delivery is usually a good choice [33], that a consumer must therefore produce the same outcome when it processes the same message repeatedly [33], and that the pattern is to record the IDs of processed messages [33]. In the fixture, that means a processed-key marker on the result log. This is a design inference from a general pattern, not a Salesforce statement that duplicates occur for Flows.
Step 6: Treat allocations and transaction limits as separate budgets
Three budgets are involved and each has its own source. The first is database transaction limits in the subscriber: Trailhead gives the Flow-facing figures of 100 queries, 150 statements, 10,000 rows and 10 seconds of CPU time per transaction [9], and the Apex governor page lists 100 synchronous and 200 asynchronous SOQL queries and a maximum CPU time of 10,000 milliseconds for synchronous Apex [8]. The Apex page does not state which set applies to a platform event triggered Flow, so the fixture should record the limit values that the log prints. A second practitioner article gives 100 SELECT statements per synchronous transaction and notes that a DML operation on a collection counts as one DML [34].
The second is event publishing allocation, counted per hour across Apex, APIs, Flows and processes [10]. The third is delivery allocation to external consumers, which excludes Apex triggers, Flows and processes. Events are therefore not a free escape from limits: the publisher still pays publishing and DML costs, and the subscriber still pays transaction costs. The point of the pattern is to break context so that a long transaction is split [24], not to remove limits.
- 01Inventory the call graph
List the publisher, event definition, subscribers, active Flow version, invocable actions and downstream automation before testing.
- 02Define expected final effects
Build the synthetic fixture and calculate expected effects from distinct requested actions, because several events can target the same record.
- 03Run the burst plan
Run isolated, 10, 200 and 201 event bursts, then multiple publisher transactions. Capture logs, consumption, record IDs and timestamps.
- 04Add branch divergence
Repeat with controlled branch divergence, then enable the downstream record-triggered automation and repeat to identify multiplying work.
- 05Inject controlled failures
Test a subscriber failure, a publisher rollback and a delayed subscriber. Record committed effects and unresolved outcomes.
- 06Use the evidence to decide
Keep the bulk-safe Flow if it meets the requirement. Simplify when consumption climbs with divergence; involve a developer when recovery needs more controls.
Data Analysis and Evidence
The evidence available is documentary. It consists of numeric limits, one documented batch maximum, and a set of source discrepancies. There is no measured throughput, latency percentile, cost or success-rate data, and none is implied. Table 3 below is the fixture's record sheet, with three fictional rows to show how the arithmetic works.
| Event correlation key | Publisher commit time | Subscriber start | Subscriber end | Completion lag (end minus commit) | Outcome and record IDs |
|---|---|---|---|---|---|
| EVT-0001 (Hypothetical Example, not run) | 10:00:00.000 | 10:00:01.800 | 10:00:02.300 | 2.300 s | Success; test record TR-0001 stamped |
| EVT-0150 (Hypothetical Example, not run) | 10:00:00.400 | 10:00:04.100 | 10:00:05.000 | 4.600 s | Success; test record TR-0150 stamped |
| EVT-0151 (Hypothetical Example, not run) | 10:00:00.400 | 10:00:04.100 | 10:00:04.700 | Not computed (failed case, reported separately; 4.300 s to failure) | Failed; rollback status unresolved |
Every value in Table 3 is invented to show the method. The method has three rules. Completion lag is calculated only from an actual pair of timestamps, publisher commit and subscriber end. Successful and failed cases are reported in separate groups, because a lag-to-failure is not a completion lag. And the "unresolved" status is a legitimate recorded outcome: when the log does not show whether a failed batch's other events committed, the sheet says so, and the recovery process is chosen only after that is known.
The numeric limits that frame the analysis are collected below. Each is a documented figure and none is a result for any org.
- Flow batch maximum: 200 messages.
- Apex platform event trigger batch: default 2,000, configurable 1 through 2,000.
- SOQL queries per transaction: 100 for Flow users per Trailhead [9]; 100 synchronous and 200 asynchronous per the Apex governor page [8].
- DML statements per transaction: 150.
- DML rows per transaction: 10,000.
- Event retention: 72 hours [21].
- Example default delivery allocation: 50,000 events in 24 hours for an Unlimited Edition org with no add-on.
Two calculations follow from these figures and are useful as sanity checks, not predictions. First, the lower bound on delivery batches for a burst of N messages delivered as one stream is ceil(N / 200), which gives 1 for 1, 10 and 200 messages and 2 for 201 messages; the upper bound is N, because a batch can be smaller than the maximum. Second, if every interview in a batch of B executes a Get Records element that is not combined across interviews, queries scale as B per element, so a batch of 101 interviews with one uncombined Get Records element exceeds the 100-query figure by itself. That is the arithmetic behind the familiar "Too many SOQL queries: 101" message, which a study guide ties to 101 Get Records iterations in a loop [11]; the explanation here is inferred from the 100-query limit and is not an official quotation. The practical consequence is that the first fixture assertion should compare query and DML counts in the log with the number of interviews in the transaction.
Implications and Future Directions
Decision rules from fixture evidence
The decision should follow what the fixture shows, in this order.
- Reduce unnecessary work and divergent branches first. If limit consumption rises with branch divergence or loops, remove loop DML and queries, as Salesforce's Admin blog and Trailhead advise [32], and apply bulkification to both query operations and DML [32].
- Retain the bulk-safe declarative Flow if it meets the requirement. If the 10, 200 and 201 runs and the multi-publisher runs complete with consumption well inside the limit lines printed in the log, and the expected final state matches the verified effects, there is no evidence-based reason to rewrite. A practitioner rule of thumb is to use Flow for declarative automation under 200 records per transaction [13]; it is not a measured threshold for platform event subscribers. The Architects guide describes Flow as including built-in protections such as auto-bulkification and automatic retries [19].
- Escalate to a developer when the evidence says so. The Architects guide says Apex provides mechanisms such as savepoint and rollback [19]. Escalation is also indicated when recovery needs retry or checkpoint behavior, or when the requirement needs per-message isolation that the Flow cannot demonstrate.
There is no generic recommendation to force a batch size of 1. For Apex, Trailhead says a smaller batch size can help avoid hitting Apex governor limits [3] while reducing the trigger batch size can slow down event processing [3], and new configuration settings take effect after you suspend and resume the trigger [3]. Those are tradeoffs for an Apex design to weigh, and they cannot be transplanted to a Flow.
Security context and audit attribution
Record audit attribution and the security context are different things. For a platform event triggered Flow, the guide says each interview runs in the context of the user who published the event, so created-by and last-modified-by fields reference that user, while debug logs appear under the Automated Process user [2]. A community demonstration of an Apex subscriber notes a different attribution split for the Apex case [35].
The role of AI assistance
AI assistance can inventory the call graph, summarize active Flow versions and propose test cases from metadata. It cannot establish runtime batch boundaries from metadata alone, because those boundaries appear only in logs and read-back from a run. Any such tool should work within the connected user's permissions and with approval, and its role in this workflow is the inventory step and the preparation of test inputs for a person to run and review. It is not a delivery monitor and should not be relied on to create platform events. Change control, sandboxes and review remain the gates.
Gaps and future checks
Several items remain open and should be re-verified when Salesforce publishes more. First, the cross-interview combining described above rests on practitioner and Architects sources and must be confirmed in the fixture logs. Second, Salesforce does not document how a failure of one interview affects its neighbors in a platform event batch. Third, the EventBusSubscriber object documents the type as blank for a process or flow Pause element subscriber [36]; whether a named platform event triggered Flow appears there should be checked in the sandbox, and for Apex triggers the trigger state can be viewed on the Platform Event Definition Detail page in Setup. Fourth, the usage metric object covers publishing and delivery to CometD and Pub/Sub API clients [37], so it is not a subscriber completion monitor for Flows.
Frequently Asked Questions (FAQs)
What is the platform event triggered Flow batch size?
The current Salesforce guide states that a Flow can receive a batch of event messages at once, up to a maximum of 200. That is a maximum, not a promise of an exact split.
Is the Flow batch size 200 or 2,000?
For Flows, 200 per the current Salesforce guide. The 2,000 figure is the Apex trigger default [21], and some older tutorials apply it to Flows [6].
Can the batch size of a platform event triggered Flow be controlled?
Salesforce does not document a batch-size control for Flows. PlatformEventSubscriberConfig is described for platform event Apex triggers, and a community reply states the setting is not available for Flow triggers [23]. Do not apply it to a Flow.
What are the governor limits for a platform event triggered Flow?
The limits are per transaction and shared by every interview and every piece of downstream automation in that transaction [16]. Figures to plan against are 100 queries, 150 DML statements and 10,000 DML rows; record the values printed in the sandbox log.
Why does "Too many SOQL queries: 101" appear with a platform event Flow?
The message corresponds to exceeding the 100-query figure. Likely causes are a Get Records element inside a loop, an element that is not combined across interviews, or downstream automation in the same transaction.
Platform event trigger or Flow: which fits?
Choose on evidence. The Architects decision guide describes Flow's built-in protections and its higher limit risk with complex logic or large data volumes [19]; Apex offers more transaction control [19] and retry and checkpoint controls.
How should a platform event triggered Flow be tested?
Use a Winter '27 sandbox fixture with synthetic data, a correlation key, a result log and the burst plan above. Always test with realistic data volume before you ship [13]. Flow tests can be created in Flow Builder [30], but runtime batch grouping needs logs and read-back.
Does Publish After Commit matter?
Yes when the subscriber reads the publisher's records. Publish Immediately can let a subscriber receive the event before the data is committed; Publish After Commit does not publish if the transaction fails.
Do platform events have delivery limits?
Yes, but the daily delivery allocation excludes Apex triggers and Flows. Publishing is counted per hour across publish methods.
Conclusion
A platform event gives the subscriber a transaction separate from the publisher's, and Salesforce documents that a Flow subscriber receives up to 200 messages per batch [1]. Those two facts are the extent of the documented boundary. They do not establish one transaction per message, an exact partition of a burst, or guaranteed completion. The FAQ above explains why the 200 figure applies to Flows and the 2,000 figure to Apex triggers.
The practical test is a sandbox fixture that separates the four scopes, runs isolated, 10, 200 and 201 event bursts and multiple publisher transactions, injects a subscriber failure, a publisher rollback and a delayed subscriber, and reconciles distinct requested actions against verified final effects. If the Flow stays bulk-safe under that evidence, keep it. If consumption climbs with branch divergence, simplify first. If recovery needs controls the Flow does not document, involve a developer. No production throughput, latency, cost or success-rate figures are available, and every worked row above is fictional or unrun.
External Sources (37)
About
Cirra AI
About Cirra AI
Cirra AI is a software company dedicated to reinventing Salesforce administration through AI-powered tooling built on the Model Context Protocol (MCP). From its headquarters in Silicon Valley, the team has built the first commercial MCP server for Salesforce administration—a hosted service that lets any MCP-compatible AI tool (Claude, ChatGPT, Cursor, and others) connect to a Salesforce org and execute admin tasks through natural language. The product gives Salesforce administrators, revenue-operations teams, and consulting partners the ability to implement configuration changes in minutes instead of hours, while respecting org permissions and maintaining full auditability. Cirra AI's mission is to "let humans focus on design and strategy while software handles the clicks." To achieve that, the company develops two complementary product lines: Salesforce Admin MCP Server – A fully hosted MCP endpoint that connects any AI tool to Salesforce in minutes via OAuth. Administrators describe what they need in plain English—create custom objects and fields, configure page layouts, manage permission sets, build flows, provision users, generate documentation—and the MCP server translates those instructions into standard Salesforce Metadata and Tooling API calls, bounded by the user's existing permissions. No local infrastructure or custom code is required: sign up, authenticate, copy the MCP URL into your AI tool, and start working. Salesforce Skills Library – An open-source collection of domain-specific skills (available at skills.cirra.ai) that supercharge AI assistants with deep Salesforce expertise. Skills cover Apex development with 150-point scoring, Flow creation and validation with 110-point scoring, Lightning Web Component development with the PICKLES architecture methodology, metadata operations, permission auditing, data and SOQL operations, org-wide health audits, architecture diagramming, and Kugamon CPQ management. The skills are installable as a single plugin for Claude Cowork, Claude Code, and OpenAI Codex, or as individual skill files for Claude web, desktop, and ChatGPT. They enable AI assistants to perform complex, multi-step Salesforce tasks independently—run a comprehensive org audit, fix issues flagged in the report, generate field descriptions at scale—without prompt-by-prompt hand-holding. Together, these products address three chronic pain points in the Salesforce ecosystem: (1) the high cost of manual administration and repetitive setup-menu navigation, (2) the backlog created by scarce expert capacity, and (3) the risk of inconsistent, undocumented changes. Early adopter feedback shows time-on-task reductions of 70–90 percent for routine configuration work.
Leadership
Cirra AI was founded in 2024 by Jelle van Geuns, a Dutch-born engineer, serial entrepreneur, and veteran of the Salesforce ecosystem with over 14 years of platform experience. Before Cirra, Jelle bootstrapped Decisions on Demand, an AppExchange ISV whose rules-based lead-routing engine is used by multiple Fortune 500 companies. Under his leadership the firm reached seven-figure ARR without external funding, demonstrating a combination of deep technical innovation and pragmatic go-to-market execution. Jelle began his career at ILOG (later IBM), where he managed global solution-delivery teams and developed expertise in enterprise optimisation and AI-driven decisioning. He holds an M.Sc. in Computer Science from Delft University of Technology and speaks frequently on AI-assisted administration, MCP integration patterns, and human-in-the-loop automation at Salesforce community events and podcasts. The leadership team includes Jeff Bajayo (VP Sales), a seasoned Salesforce and SaaS professional with over a decade of experience, and Latrice Barnett (Advisor, Marketing), who brings 10+ years of partnership and ecosystem marketing expertise from the Salesforce ecosystem.
Why Cirra AI Matters
MCP-native architecture – Rather than building a proprietary agent UI, Cirra embraces the Model Context Protocol as a universal connector, letting customers use the AI tool they already prefer—Claude, ChatGPT, Cursor, or any future MCP-compatible client—while Cirra handles the Salesforce integration layer. Deep vertical focus – The Skills Library encodes thousands of Salesforce best-practice patterns, scoring rubrics, and validation scripts that generic AI assistants lack. This domain intelligence produces higher-quality, more reliable outputs for Apex, Flows, LWC, permissions, and metadata operations than general-purpose prompting alone. Enterprise-grade security – The platform uses OAuth authentication, encrypted endpoints, and inherits the connected user's Salesforce permission model. Cirra never stores Salesforce credentials, and all actions are logged for auditability—critical requirements for regulated industries adopting AI tooling. Works for admins and partners alike – Individual administrators use Cirra to eliminate setup-menu drudgery and respond faster to business requests. Consulting firms use it to scale senior-level expertise across delivery teams, enabling more projects delivered at higher quality and lower cost through improved documentation and test coverage. Accessible to non-developers – Anyone with a paid Claude or ChatGPT subscription can install the skills and connect the MCP server. No coding, no complex integrations—just sign up and start working.
Future Outlook
Cirra AI continues to expand its capabilities with the upcoming Admin Agent (launching June 2026), which will bring fully autonomous multi-step task execution to Salesforce administration. The company is also extending platform compatibility to additional AI marketplaces and broadening its skills library to cover more Salesforce clouds and use cases. By combining open standards, domain-specific intelligence, and a relentless focus on the admin experience, Cirra AI is building the de-facto AI integration layer for Salesforce administration.
Disclaimer
This document is provided for informational purposes only. No representations or warranties are made regarding the accuracy, completeness, or reliability of its contents. Any use of this information is at your own risk. Cirra AI shall not be liable for any damages arising from the use of this document. This content was generated with assistance from artificial intelligence tools, which may contain errors or inaccuracies. Readers should verify critical information independently. All product names, trademarks, and registered trademarks mentioned are property of their respective owners and are used for identification purposes only. Use of these names does not imply endorsement. This document does not constitute professional or legal advice. For specific guidance related to your needs, please consult qualified professionals.