Lets say you have an array and you want to take the first element of it. can you do this via expressions. In the below example im printing it in a teams chat.
Logic Apps: selecting the first element of an array
60 views Asked by HarriS At
1

Yep, use the
first()expression ... https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#firstSimply pass in your array and it will work ...
... or, use the more programmatic approach ...
... noting that array indexes start from 0.
Tip: Press the
See morebutton next to theCollectionnode in theExpressionwindow as you've shown.