Speeding Up Power Automate: Replacing ‘Append to Variable’ with ‘Compose’ for Efficient Workflows

Fredrik Engseth
6 min readMar 15, 2024

Experiencing slow performance with the ‘append to’ variable in Power Automate’s ‘apply to each’ loops? This insightful guide reveals how substituting ‘append to’ variables with ‘compose’ actions can significantly accelerate your loops. We’ll walk you through an example, showcasing the transformative impact of this method on your Power Automate flows. Enhance your efficiency and streamline your processes with our step-by-step approach.

Part one: Using Variables in an Apply to Each in Power Automate

In this part, we look at using ‘Variables’ in an ‘Apply to Each’ in Power Automate. Let’s look at an example loop that’s using the ‘append to’ variable. In the example below, we’re examining a manually triggered flow that lists an account’s related contact records. Let’s go through it quickly, step by step. More details continue under the screenshot.

Step 1: The flow starts with the trigger ‘Manually trigger a flow,’ which allows you to run the flow manually or through the action ‘Run a Child Flow’ from another flow. After the…

--

--

Fredrik Engseth

Developer | Dynamics 365 | Power Platform | Azure | Personal development | Investments | ☕ https://www.buymeacoffee.com/fredrikengseth