Fix 225MB result size limit in Flow Action Details sync with batch processing #10744
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
Admin | Sync Template v3 (Flow Action Details)flow fails in environments with ~90K flows, exceeding Power Automate's 225MB aggregated result size limit. The flow attempted to retrieve all flows in a single DataverseListRecordscall withminimumItemCount: 100000.Changes
admin_FlowActionDetailsBatchSize(default: 5000, range: 1000-10000)$topparameter for batch processing:Flows_to_iterateinGet_flows_to_updatescopeFlows_to_iterate_with_specialty_flagsinClear_Specialty_FlagsscopeImplementation
{ "parameters": { "$top": "@parameters('FlowActionDetailsBatchSize (admin_FlowActionDetailsBatchSize)')", "$filter": "admin_flowdeleted ne true and admin_inventorymyflowactiondetails eq true..." }, "runtimeConfiguration": { "paginationPolicy": { "minimumItemCount": "@parameters('FlowActionDetailsBatchSize (admin_FlowActionDetailsBatchSize)')" } } }The flow now processes flows in batches, clearing the
admin_inventorymyflowactiondetailsflag after each batch. Multiple runs handle the full dataset without exceeding size limits.Impact
Files Changed
AdminSyncTemplatev3FlowActionDetails-7EBB10A6-5041-EB11-A813-000D3A8F4AD6.json(+14/-4 lines)admin_FlowActionDetailsBatchSize/environmentvariabledefinition.xml(new)docs/SOLUTION-FlowActionDetails-BatchSize.md(new, configuration guide)Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.