web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Expressions - Array - ...
Power Automate
Unanswered

Expressions - Array - First

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

I need help in expressions to get the first ( 0 ) name in Department.

 

Department is an Array. Below is structure

-------------------------------------------------------

Department [ ]

                           {0} name

                           {1} name

                           .

------------------------------------------------------

 

KarthikMahendra_0-1637084628046.png

 

 

I wrote this expression  item().departments.first.name

 

KarthikMahendra_2-1637084689606.png

 

 

I am getting this error 

 

KarthikMahendra_1-1637084643178.png

 

 

 

 

Categories:
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @Anonymous ,

    Try one of this formulas (both should work):

     item()?['departments'][0]?['name']

    or

    first(item()?['departments'][0])['name']

    Hope it helps !

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard