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 / Planner Task Completed...
Power Automate
Answered

Planner Task Completed & Unique Channel ID

(0) ShareShare
ReportReport
Posted on by

What expression could I use to retrieve a specific channel name based on the trigger “when a planner task is completed”? Both the bucket name and the channel name are the same (also, to note it will be multiple channels within the team). I would like to post a message in the channel once the task is completed.

 

PDT2017_0-1651867611393.png

 

 

  

PDT2017_1-1651867611395.png

 

PDT2017_2-1651867611398.png

 

 

 

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

    Hi @PDT2017,

     

    In the bucket name 'ID:' is used and in the channel name it is 'ID-'. So, the names of the bucket and channel do not look exactly the same in your screenshots 😅 

     

    With this example I would use a filter array to see if the Channel name contains the same ID number which is listed between the round brackets in both the bucket and channel name fields.

     

    Below is an example of that approach.

     

    1. Add a Filter Array action before the list channels action.

    Match the value id of the completed task to Bucket Id of the list buckets action

     

    2. Add a second Filter Array action after the list channels.

    Match the Channel Name with a contains function to the name of the first bucket found in the previous Filter Array action. I used a couple of split actions to only match on the ID between the round brackets btw. That that expression can be found below:

     

    split(split(body('Filter_array_-_Bucket')[0]['name'], 'ID: ')[1], ')')[0]

     

    filterarray_actions.PNG

  • PDT2017 Profile Picture
    on at

    Good eye! I completely missed that. Thank you!!! 

  • PDT2017 Profile Picture
    on at

    Hi @Expiscornovus

     

    One more question, I needed to retrieve the ID number from the Title, could I use the split/replace for that? or is it possible to remove text? 

     

    Thanks for your help! 

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard