In Power automate, while retrieving the related records, sometimes you would like to get only the first record from the result (collection) and hence it gets easier with ‘First’ Expression of power automate. The solution is very simple.

Lets take an example to explain this further . Suppose you are retrieving associated contacts records from an Account and want to only retrieve first record in the array. The quick and easy solution would be to use First expression to get the first record from the collection.

Why Use the first Expression?

The first() function allows you to directly retrieve the first item from an array, reducing complexity and making your power automate flows easier to understand and maintain. Rather than using multiple actions or conditions to access the first element, first() does it efficiently in a single step.

Syntax Overview

The syntax of first expression is shown below:

first(outputs('List_rows')?['body/value'])

Thanks for Reading 🙂

Most Viewed Posts

Table of Contents

Categories:

No responses yet

Leave a Reply