Short Notes: Illustrating the Item() v Items(‘Apply_to_each’) function in Power Automate

Short notes: Illustrating the usage of item() and items() function. The item() and items() function is used to get the value of the current item as shown below:

item() v items('Apply_to_each') - produce the same results
item() v items(‘Apply_to_each’) – produce the same results. Click on the above to view a larger image.

In the example above both item() and items() functions are used to get the value of the current item in a loop. Note how both functions produce the same results – as the flow contains a single Apply to each loop.

Items() function shows the context

When using nested apply to each loops - how do you reference an item in the other loops?
When using nested apply to each loops – how do you reference an item in the other loops?

When using nested apply to each loops – see the example above on how to reference an item in the outer loops.

item() function must not have any parameters

item() function must not have any parameters

Use the following syntax for the item() function:

Further reading:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Website Built with WordPress.com.

Up ↑

%d bloggers like this: