Sum Array Elements in Power Automate without apply to each.

Consider Sample Array: [55,55,56,56,55]

Use Following xpath Expression : 

xpath(xml(json(concat('{ "root": { "arr": ',outputs('Sample_Array'), '}}'))),'sum(//root/arr)')



Feel free to share the queries.

Comments