web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / remove last element fr...
Power Automate
Unanswered

remove last element from array

(2) ShareShare
ReportReport
Posted on by 48

Hi 

 

I'm having an array like this ["a","b","c","d","e"] now i want to remove last 2 elements from array. is there any possibility to do so ?

Categories:
I have the same question (0)
  • Verified answer
    JuanPJesusG Profile Picture
    49 on at

    Hi,

     

    You can use this function 

    take(outputs('Compose'),add(length(outputs('Compose')),-2))
     
    JuanPJesusG_0-1627843668791.pngJuanPJesusG_1-1627843687024.png

    Best regards,

    JP

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard