Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

 

 

 

  • PDT2017 Profile Picture
    on at
    Re: Planner Task Completed & Unique Channel ID

    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! 

  • PDT2017 Profile Picture
    on at
    Re: Planner Task Completed & Unique Channel ID

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

  • Verified answer
    Expiscornovus Profile Picture
    31,732 Most Valuable Professional on at
    Re: Planner Task Completed & Unique Channel ID

    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

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >