Power Automate Filter Array: 12 Tested Examples

Power Automate Filter array action in basic mode with From Requests and Status is equal to Completed

The Power Automate filter array action keeps only the items in an array that match a condition. Set From to your array and a condition like Status is equal to New, and it returns a smaller array with just those items. In this tutorial, we’ll filter in basic and advanced mode, combine conditions with and/or, … Read more >>

Power Automate Count Items in Array: 5 Tested Ways

Power Automate run view of Count completed with output 3 after the Filter completed requests action

To count items in array values in Power Automate, use length(). length(variables(‘Requests’)) returns 6 for a six-item array. To count only matching items, run a Filter array first and take the length of its output. In this tutorial, we’ll count all items, matching items, distinct values, and items that don’t match, and compare that with … Read more >>

Power Automate Append to String Variable: Tested Guide

Append summary line run details in Power Automate with Name Summary and Value Website redesign (Seattle)

The append to string variable action in Power Automate adds text to the end of a String variable. Run it inside Apply to each with concat(item()?[‘Title’], decodeUriComponent(‘%0A’)), and you build a multi-line list, one line per item. In this tutorial, we’ll build a text summary in a loop, add line breaks and separators, and see … Read more >>

Power Automate Set Variable: How It Works (Tested Examples)

Set LastCustomer action in Power Automate with Name LastCustomer and Value Customer inside an Apply to each loop

The Power Automate set variable action replaces a variable’s current value with a new one. Pick the variable in Name, put the new value in Value, and every later step that reads variables(‘Name’) gets the new value. In this tutorial, we’ll set String, Integer, Boolean, Array, and Object variables, use Set variable in a loop, … Read more >>

Power Automate Do Until Loop: Tested Examples and Limits

Power Automate run view of a Do until loop showing 1 of 4 iterations, Status Succeeded and the Do until done card

The Power Automate do until loop repeats its actions until a condition you set turns true. Put an Increment variable inside it, set the loop to stop when greaterOrEquals(variables(‘Page’), 4), and it runs four times and moves on. In this tutorial, we’ll build a Do until loop step by step, stop it with a counter … Read more >>

Power Automate Increment Variable by 1: Tested Loop Counter Guide

Power Automate run results showing RowsProcessed 6, Completed 3 and Attempts 3 from Increment variable counters

To increment variable by 1 in Power Automate, add the Increment variable action, pick your Integer variable in Name, and type 1 in Value. Each time the action runs, the variable goes up by one, so 0 becomes 1, then 2. In this tutorial, we’ll build a real loop counter, number rows, count matching items, … Read more >>

Power Automate Create Array from String: 8 Tested Ways

Power Automate Show results raw outputs comparing the split array with leading spaces and the trimmed array

To create array from string values in Power Automate, use split() with the text and the character between items. split(‘Seattle,Denver,Austin’, ‘,’) returns [“Seattle”,”Denver”,”Austin”], an array you can loop over, filter, or count. In this tutorial, we’ll turn messy comma text, multi-line notes, semicolon lists, JSON text, and number lists into clean arrays. I ran every … Read more >>

Power Automate Apply to Each Array Variable: 7 Tested Examples

Power Automate raw outputs after Apply to each loops over array variables: TotalBudget, BigBudgetNames, NumberedCities

To run Power Automate apply to each array variable loops, add Apply to each, put variables(‘Customers’) in Select an output from previous steps, and use item() inside the loop to read the current item. In this tutorial, we’ll reuse the demo flow from my array variable posts and add loops to it. You’ll read items, … Read more >>

How to Initialize an Array Variable with Values in Power Automate

Power Automate raw outputs showing array variables UpperCities and States plus ApproverCount from a test run

To initialize an array variable with values in Power Automate, add the Initialize variable action, set Type to Array, and type a JSON list in Value, such as [“Seattle”, “Denver”, “Austin”]. The brackets and the double quotes are what make it an array. In this tutorial, we’ll build a real demo flow step by step. … Read more >>

Power Apps Patch Attachments to SharePoint Without a Form

Power Apps Update invoice screen with invoice ID 3, its title and two PDF attachments loaded from SharePoint

To save files from Power Apps to a SharePoint list item, pass the modern Attachments control’s Attachments output straight into Patch: Patch(Invoices, Defaults(Invoices), {Title: txtNewTitle.Text, Attachments: attNew.Attachments}). No edit form is needed. In this tutorial, we’ll use power apps patch attachments formulas to build a two-screen app. One screen creates an invoice with files, and … Read more >>