Hello community,
can anyone suggest me how to get second highest number from an array.
Thanks in advance
Discussion posts and replies are publicly visible
Check this plugin https://community.appian.com/b/appmarket/posts/sort-utilities
index( sortintegerarray( {1,20,8,9,2}, true() ), 2, {} )
It shows error
The function 'sortintegerarray' is unavailable.
That is a plugin. Do not use plugin for this simple usecase.
it is a plugin .... for which he has shared the link
My friend, you have to deploy the plugin first it has lots of other sorting functions which are quite helpful
Okay thank you.
Thanks for the information.
a!localVariables( local!array: { 1, 2, 3, 4 }, max( remove( local!array, wherecontains( tointeger(max(local!array)), local!array ) ) ))