I am trying to add version numbers into an SP list, but I can't figure out how to pull a variable from a filtered array.
- I have an array that contains two items: Name and Version.
- The number of items in the array is variable.
- I use Filter Array in an Apply to Each to loop through a SharePoint list. For each item in the SharePoint list, my array is filtered down to a single item by comparing the item in the SP list to the items in my array.
Now this next part I am having trouble with. I need to get the "Version" out of that single item array. I am using compose (visible below) with variables('currentVersion')?[0]?['Version']. This works to get the item at index 0 of the unfiltered array, but I cannot figure out how to modify the expression to work on the Filter Array's Output. Changing 'currentVersion' to anything else gives me an error. I am sure I am missing something simple, but I am not sure what that is off-hand.