Forum Discussion
Joe Fedorowicz
Nov 09, 2017Iron Contributor
Creating HTML Table from Filtered Array
Hello, Hoping this is easy. I get some SharePoint items using "Get Items", I then Filter that array based upon an ID in the last using "Filter Array." All good up to there. I then want to "Creat...
cschneider1820
Feb 12, 2021Copper Contributor
Joe Fedorowicz I'm having the same issue; did you ever resolve this? When I add values from the Get items phase, I get an Apply to each added to my Create HTML table step which I don't want.
coyote_ptm
Feb 23, 2021Copper Contributor
I did finally get mine to work. I created a quick example ( mine wasn't as easily shareable ).
Populate array variable. In this example, just insert 3 "rows":
Filter array:
The "is equal to" in advanced is: "@equals(item()?['DocumentID'], 10)"
Send output from "Filter Array" to "Create HTML Table"
The "From Body" = '@{body('Filter_array')}'
The "Value" = '
item()?['DocumentID']'
Here's the output of run for create html table.
Hope this helps.