cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jesheehy
Level: Powered On

Array syntax for Select action

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Array syntax for Select action

Did you try the following?

 

{

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

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

}





If anybody solved your question, remember to mark its post as a solution!

Proud to be a Flownaut!





4 REPLIES 4
Super User
Super User

Re: Array syntax for Select action

Did you try the following?

 

{

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

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

}





If anybody solved your question, remember to mark its post as a solution!

Proud to be a Flownaut!





jesheehy
Level: Powered On

Re: Array syntax for Select action

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
Level: Powered On

Re: Array syntax for Select action

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

Super User
Super User

Re: Array syntax for Select action

Nevermind! Glad it helped

BR





If anybody solved your question, remember to mark its post as a solution!

Proud to be a Flownaut!





Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 47 members 4,932 guests
Please welcome our newest community members: