cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Highlighted
Dual Super User III
Dual Super User III

Re: Array syntax for Select action

Did you try the following?

 

{

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

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

}



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

4 REPLIES 4
Highlighted
Dual Super User III
Dual Super User III

Re: Array syntax for Select action

Did you try the following?

 

{

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

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

}



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Highlighted
Advocate I
Advocate I

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.

Highlighted
Advocate I
Advocate I

Re: Array syntax for Select action

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

Highlighted
Dual Super User III
Dual Super User III

Re: Array syntax for Select action

Nevermind! Glad it helped

BR



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,766)