We have already seen how to extract first and last character from string in Cloud flows.
Click here to check out part I.
Let see how we can get first and last value in array.
I have array of list of records (account records), want to get first value from array.
Array –
Add a compose step in flow and use below syntax to get first value.
Syntax- first(<array>)
Output –
Similarly, we can get last value in array.
Syntax – last(<array>)
Output –
Hope this helps!