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 / Array syntax for Selec...
Power Automate
Unanswered

Array syntax for Select action

(0) ShareShare
ReportReport
Posted on by 34

I am using the SharePoint "Get items" action and then a "Filter array" action to get a subset of that list (note: I cannot use the OData filter in my flow). I then want to use the "Select" action to get a few of the columns, which I will then feed into an HTML table. I'll then include that an email.

 

I'm getting hung up on the "Select" action and hopefully it is just a syntax issue.

 

The output from the "Filter array" action looks like:

 

{
	"@odata.etag": "\"2\"",
	"ItemInternalId": "904",
	"ID": 904,
	"Title": "Some title here",
	"Client": {
		"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
		"Id": 11,
		"Value": "ABC"
	},
	... more fields ...
}

In my "Select" action, I thought something like the below would work, but it's not. Can someone help me with the syntax?

 

{
	"Title":"@body('Filter_array')?['Title']",
	"Client":"@body('Filter_array')?['Client']?['Value']"	
}

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Did you try the following?

     

    {

    "Title": "@item()?['Title']",

    "Client": "@item()?['Client']?['Value']"

    }

  • jesheehy Profile Picture
    34 on at

    The filter array is actually within a loop over an array of email addresses. So, I think @item would refer to the email address array. I need to refer dynamically to the filter array fields.

  • jesheehy Profile Picture
    34 on at

    Sigh, my fault. I didn't realize that item() has a local scope. Thanks!

  • efialttes Profile Picture
    14,756 on at

    Nevermind! Glad it helped

    BR

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard