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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get Value from ...
Power Automate
Unanswered

How to get Value from array using First, not whole first row / record

(0) ShareShare
ReportReport
Posted on by 32
 
Hi there, 
 
I am using Compose with First() expression, to try and get the first Value from a Select Array. It returns the whole row / object (not sure what the right terminology is sorry), however I am trying to get the value itself. 
 
It is returning { "Licenses" : "Finance"}, whereas I am trying just to return "Finance". 
 
 
 
I feel like I need to add more to the First expression but cannot find the right syntax. Can anyone help me with how to access the value itself? 
 
Current First expression: 
 
first(body('Select'))
 
Whole Flow included below for reference
 
Flow
 
  
 
Flow Details
 
 
 
 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Jalpa Mahesh Dhola Profile Picture
    35 on at
    You need to change the expression like 
     
    first(variables('Array1'))?['Licence']
  • RubySmith11 Profile Picture
    32 on at
    Hi @Jalpa Mahesh Dhola, 
     
    Thanks for your reply.
     
    Is there a way to apply the expression to the Body of Select Action? Or can it only be used against an Array Variable, so I need to Append Array for each value in the Select first into a whole new 3rd array? 
     
    Thanks,
    Ruby
  • Jalpa Mahesh Dhola Profile Picture
    35 on at
    Yes,  you can use select action also like this
     
     
    Which will give the output like
     
  • RubySmith11 Profile Picture
    32 on at
    Hi @Jalpa, 
     
    Thanks for your replies and help. 
     
    I am trying to get the Compose to provide the output of "Finance". 
     
    For your second suggestion, in your screenshot the output still has  { "Licenses" : "Finance"}, whereas what I am trying to extract is only the "Finance". 
     
    Is there a way to do that? 
     
    I then need to concatenate it with another field later, so cannot have the whole value of { "License" : "Finance" }
     
    When I try the first suggestion: first(variables('Array1'))?['Licence']
    my compose input and output is blank. 
     
     
    Thanks in advance for your help!
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard