Skip to main content
Community site session details

Community site session details

Session Id : AY1yJ6Nz84e9fxRqBB4uwc
Power Automate - Building Flows
Answered

Planner Task Completed & Unique Channel ID

Like (0) ShareShare
ReportReport
Posted on 6 May 2022 20:07:06 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 08 May 2022 at 22:43:48
    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 08 May 2022 at 13:22:26
    Re: Planner Task Completed & Unique Channel ID

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

  • Verified answer
    Expiscornovus Profile Picture
    32,182 Most Valuable Professional on 08 May 2022 at 12:52:12
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!