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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Email Task List using ...
Power Automate
Answered

Email Task List using Bucket Name instead of BucketID sorted by Bucket Name

(0) ShareShare
ReportReport
Posted on by 12

I have been looking at other solutions provided before combined with my own testing and have come to a standstill.

 

My goal is to produce a list of tasks with the bucket ID replaced by Bucket Name, sorted by Bucket Name, and then emailed out. My core flow is as follows: 

 

Capture1.PNG

The output received via email currently is:

Capture2.PNG

 

Obviously the BucketID is useless for a human to read, so fixing that is first and foremost. Something like a vLookup in excel would do the trick if it existed. Then after that is replaced I would like to sort by Bucket Name, which I haven't found a way to do that either. Any assistance is appreciated as this is driving me nuts!

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @timr,

     

    You could try the following methods to achieve your needs:

    1. Use List tasks action and List buckets action to get all the tasks and buckets, and initialize the array variable to hold TaskList.

    30.PNG

    2. Use Apply to each to traverse the value of List buckets output, nesting a layer of Apply to each to traverse the contents of List tasks output.

    3. Use Condition to determine whether the bucket id of the current task is equal to the bucket id output by the List buckets action currently traversed.

    4. If equal, the output from them is appended to the array as an object.

    31.PNG

    5. Finally, the array is used as the content of Html table.

    32.PNG

    33.PNG

    Please take a try.

     

    Best Regards,

  • timr Profile Picture
    12 on at

    This is great and working so far! Any idea on how to sort the array?

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @timr,

     

    Sort array? What do you mean?

    The same BucketName in the table is already displayed continuously.

    This is just the Html table. All that can be done here is to display the contents of the relevant fields in a table without filtering or sorting.Man Indifferent

     

    Regards,

  • timr Profile Picture
    12 on at

    You are correct, they are grouped by bucket name, but they are not sorted so bucket names beginning with "A" are displayed mid-list. It is simpler for the teams and myself to find their area when sorted alphabetically. Was hoping to find a sort function or something. Any ideas?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard