
Online Course Creator (79,000 students and counting)
In a recent YouTube walkthrough, Alireza Aliabadi demonstrates why the perceived slowdowns when exporting data from SharePoint to Excel often come from the way rows are written, not from external throttling or limits on the Microsoft Graph. He shows that writing rows one at a time in a Power Automate flow becomes the hidden bottleneck, and that switching to a bulk insert approach can cut execution time from minutes to seconds. The video guides viewers through building a JSON array, creating an Office Scripts script (with help from ChatGPT), and wiring everything back into a flow for much faster exports.
Aliabadi explains that many admins instinctively blame throttling, API ceilings, or SharePoint itself when exports drag on, but the real issue is the per-row write pattern. Each individual write generates overhead: authentication checks, request latency, and workbook processing time, which compounds when thousands of rows are processed. Consequently, the flow spends most of its time in many small operations rather than in efficient bulk transfer.
The alternative Aliabadi presents leverages an Office Scripts routine that accepts a structured JSON array and writes rows in a single operation inside the Excel context. This approach reduces round trips between Power Automate and the workbook and lets the script use native Excel APIs like setValues to populate ranges quickly. He demonstrates generating the script with assistance from ChatGPT, which speeds development, and then calling it from the flow to process many rows at once.
While bulk inserts significantly improve speed, Aliabadi notes several tradeoffs that admins must balance. Large JSON payloads can hit service size limits or increase memory use during runtime, so flows often need to chunk data into manageable batches; thus, you trade a single large operation for several medium ones. Moreover, executing scripts with large datasets places more load in the Excel runtime, which may trigger timeouts or require careful error handling and logging to maintain reliability.
The video also outlines practical challenges such as schema alignment, data validation, and concurrency when multiple flows access the same workbook. To reduce risk, Aliabadi recommends mapping fields carefully when building the JSON array and adding incremental retries and checkpoints so partial failures can be recovered without reprocessing everything. Additionally, he highlights monitoring and testing the approach with realistic export sizes to tune batch sizes and retry policies.
Using ChatGPT to scaffold an Office Scripts script speeds development but introduces maintenance and security considerations that teams must address. Generated code often needs review and adjustments to match organizational authentication patterns, error handling conventions, and compliance requirements, so relying on AI as a starting point is useful but not a substitute for careful code review. In practice, teams balance developer speed against the need for audited, maintainable scripts.
Aliabadi’s method includes several operational recommendations: build and test a JSON payload sample first, tune batch sizes based on observed runtime and memory, and instrument flows with clear logging so failures are visible and recoverable. He also suggests scheduling exports during off-peak hours when possible and using chunking to stay within action size limits while still benefiting from bulk writes. These measures help reconcile speed improvements with robustness and predictable operations.
Despite its advantages, the bulk insert approach is not universally optimal, especially for very large datasets or highly concurrent environments where multiple processes update the same workbook. In such cases, shifting to a database-backed pipeline, exporting to CSV, or using a data warehouse may offer better scalability and simpler concurrency control. Therefore, admins should evaluate the dataset size, expected concurrency, and downstream reporting needs before committing to a single solution.
For SharePoint admins who regularly export audit logs, reporting data, or large lists, the bulk insert pattern delivers clear time savings and can transform slow, manual workflows into near real-time exports. Aliabadi’s demonstration provides a reproducible pattern that reduces flow run times dramatically while also giving admins the tools to test limits and make informed tradeoffs. Consequently, teams can move from blaming external services to optimizing their own automation design.
Alireza Aliabadi’s video reframes a common performance problem by pinpointing how per-row writes to Excel amplify latency and offering a practical bulk-insert solution with Office Scripts. While the approach delivers major speed gains, it requires careful batching, validation, and monitoring to avoid size and runtime limits. Overall, the technique is a useful addition to an admin’s toolkit, but it should be applied thoughtfully alongside alternatives when scale or concurrency demands grow.
Power Automate Excel bottleneck, Power Automate Excel performance, Optimize Excel Power Automate, Power Automate slow Excel, Excel connector limitations Power Automate, Speed up Power Automate Excel flows, Workarounds Excel bottleneck Power Automate, Alternatives to Excel in Power Automate