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 / Trello card position t...
Power Automate
Unanswered

Trello card position troubles

(0) ShareShare
ReportReport
Posted on by

I'm having trouble figuring out filtering cards based on their position in the list. My goal is to automatically add a comment to the top card in a list when a file is created in OneDrive. I have everything figured out except how to filter my list of Trello cards to only apply this to the top card of a list. Any ideas?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @wmosier,

     

    As far as I am aware the List the cards in a board does not support sorting. However, as a workaround you could list all cards and figure out which card has the lowest pos value. That should be the top card. You could use a Select and Filter Array action for that.

     

    Below is an example of that approach.

     

    1. Add a Select action.

    a. Use the body field of the List the cards in a board action in the From field

    b. Switch the Map field to Text mode

    c. Add the following expression to only retrieve the position values:

     

    item()?['pos']

     

     

    2. Add a Filter Array action

    a. Use the body field of the List the cards in a board action in the From field

    b. In the Filter use Card Position is equal to the min value of the Select. Use the expression below for that:

     

    min(body('Select'))

     

     

    trellocards.png

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