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 / Channel post starts wi...
Power Automate
Unanswered

Channel post starts with TODO and chat details

(0) ShareShare
ReportReport
Posted on by 43

Hello.

I have a challenge in the (Create a Planner task when a channel post starts with TODO) I want to be able to specify from the chat all info in the TASK for example if I type {TODO Test this Item @Xuser /test the button and get back to me / #Important } then the Power Automate will take the above and use the "Test this Item" in the task Subject and the @User will be the assigned to and the /test the button and get back to me/ will be the description and # will be the priority while the stating date will be the date and time the task was created. Or any other way to specify what to use.

 

Any help will be much appreciated.

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

    Hi @whissi ,

     

    Maybe you could try to optimize the input statement and then extract the value of each field by expression.

    vyujincuimsft_1-1664789572747.png

    I have made a simple test for your reference.

    User Name:

    trim(split(outputs('Html_to_text')?['body'],'/')[2])

    Task Title:

    split(outputs('Html_to_text')?['body'],'/')[1]

    Description:

    split(outputs('Html_to_text')?['body'],'/')[3]

    Priority:

    if(equals(replace(replace(split(outputs('Html_to_text')?['body'],'/')[4],decodeUriComponent('%0A'),''),'#',''),'Important'),3,9)

    vyujincuimsft_2-1664789675958.png

    vyujincuimsft_3-1664789998119.png

    vyujincuimsft_4-1664790071223.png

    vyujincuimsft_5-1664790143813.png

    Result Screenshot:

    vyujincuimsft_0-1664789488274.png

     

     

    Best Regards,

    Charlie Choi

  • whissi Profile Picture
    43 on at

    You are my hero 👍 - Thank you so much

  • whissi Profile Picture
    43 on at

    Just a question, regarding the priority, if I put low or urgent will it take it automatically or do I need to do some more functions

  • v-yujincui-msft Profile Picture
    on at

    Hi @whissi ,

     

    Maybe you could try the following expressions:

     

    if(equals(replace(replace(split(outputs('Html_to_text')?['body'],'/')[4],decodeUriComponent('%0A'),''),'#',''),'Urgent'),1,if(equals(replace(replace(split(outputs('Html_to_text')?['body'],'/')[4],decodeUriComponent('%0A'),''),'#',''),'Important'),3,if(equals(replace(replace(split(outputs('Html_to_text')?['body'],'/')[4],decodeUriComponent('%0A'),''),'#',''),'Medium'),5,9)))

     

    Here is a link for your reference.

    https://sharepains.com/2022/01/10/task-priority-in-microsoft-planner/

     

     

    Best Regards,

    Charlie Choi

  • whissi Profile Picture
    43 on at

    Hello @v-yujincui-msft  Sorry for troubling you but you are the only that got to help me.

    If i need to add 1 more section. Select a Bucket for example after the Propriety I add the bucket name so it goes directly to that bucket how can it be added.

    Thanks again for your help

     

  • v-yujincui-msft Profile Picture
    on at

    Hi @whissi ,

     

    You could create a flow to get all the bucket names and bucket ids.

    vyujincuimsft_0-1665022189771.png

    Then you could use the expression to extract the Bucket name from the message, and finally apply the following expression.

    if(equals(value,'bucketname1'),'buckid1',if(equals(value,'bucketname2'),'bucketid2',null))

    vyujincuimsft_1-1665022275728.png

     

     

    Best Regards,

    Charlie Choi

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