Hello:
I was successful in recreating the flow Paulie Murana (YouTube video - MVP) published on
How to instantly sum an Array of numbers in a Power Automate Cloud Flow
What I am looking to do is to find the MIN value from the column array returned.
This flow runs successfully:
Get Items ✅>Select column values ✅> Compose JSON✅> Compose XML✅>Compose SUM of results
xpath(xml(outputs('Compose_JSON')),'sum(/root/Numbers)')
This results in error:
xpath(xml(outputs('Compose_JSON')),'min(/root/Numbers)')
❗Error Details:
Unable to process template language expressions in action 'Compose_min_function' inputs at line '0' and column '0': 'The XPath expression evaluates to a result of type 'Any' that is not supported. The expression must evaluate to a number, a string, a boolean, or a node set.'.

In the end what I am trying to accomplish is:
IF
the "when item is created" NetAmt is less than the lowest value in the GetItemsApprovers MinAmt
then send approval to created by manager
Else
If
"when item is created" NetAmt greater than GetItemsApprovers (MinAmt) and "when item is created" NetAmt less than GetItems (MaxAmt)
get email addresses from Approver People column and send approval/s to those addresses.
Would be thankful to anyone that may be able to help.
DublinOH User