Items in Power Automate

 

 Meaning of items() in Power Automate

In Power Automate,
items() is a function that represents the current item being processed inside a loop, such as an Apply to each action.

Think of it like this πŸ‘‡
If you have a list of rows and Power Automate loops through them one by one —
items() refers to the single row currently being processed.


🧩 Example

Suppose:

Your “List rows” (List_rows_1) returns:

{ "body": { "value": [ { "fullname": "John Doe", "emailaddress1": "john@contoso.com" }, { "fullname": "Jane Smith", "emailaddress1": "jane@contoso.com" } ] } }

You then add an Apply to each action:

Apply to each: value = outputs('List_rows_1')?['body/value']

Inside this loop:

  • On the first iteration, items() =

    { "fullname": "John Doe", "emailaddress1": "john@contoso.com" } ```
  • On the second iteration, items() =

    { "fullname": "Jane Smith", "emailaddress1": "jane@contoso.com" } ```

🎯 Using items() Inside the Loop

You WantExpression
Full Nameitems('Apply_to_each')?['fullname']
Emailitems('Apply_to_each')?['emailaddress1']

If your loop name is something else (say Apply_to_each_2), use:

items('Apply_to_each_2')?['fullname']

🧠 Analogy

You can think of it like:

for each record in list_of_records: current_record = items()

So items() = the current record being processed in the loop.



Comments

Popular posts from this blog

πŸ” Dataverse + Azure Integration: Choosing Between Synapse Link and Microsoft Fabric

⚡ Example: Rate Limiting in Azure API Management

πŸ‘€ Anonymous Role in Power Pages – What It Is and When to Use It