SOLVED

User Microsoft Flow to post comment in Teams conversation channel more dynamically

%3CLINGO-SUB%20id%3D%22lingo-sub-359935%22%20slang%3D%22en-US%22%3EUser%20Microsoft%20Flow%20to%20post%20comment%20in%20Teams%20conversation%20channel%20more%20dynamically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359935%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20I%20was%20working%20on%20some%20pieces%20regarding%20Teams%2C%20Flow%20and%20Planner.%20While%20I%20have%20the%20logic%20of%20what%20to%20pull%20from%20Teams%20figured%20out%20(sort%20of%2C%20but%20that%20another%20story)%2C%20I%20happened%20to%20notice%20that%20the%20way%20the%20logic%20is%20setup%20that%20when%20you%20choose%20the%20Output%20method%20for%20Planner%20of%20%22When%20task%20is%20assigned%20to%20me%22%2C%20I%20choose%20to%20have%20is%20post%20a%20comment%20in%20the%20channel%20of%20who%20assigned%20the%20task%20to%20whom.%20However%2C%20I%20found%20out%20while%20working%20on%20another%20one%20of%20my%20planners%20that%20when%20I%20created%20a%20task%20and%20assigned%20it%20to%20myself%2C%20it%20made%20a%20post%20in%20the%20channel%20that%20wasn't%20even%20part%20of%20this%20planner.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20my%20question%20is%20this%3A%3C%2FP%3E%3COL%3E%3CLI%3EHow%20do%20you%20make%20the%20%22Post%20Message%22%20action%20more%20dynamic%3F%20As%20in%20the%20option%20to%20post%20a%20message%20to%20the%20Channel%20that%20the%20Planner%20belongs%20to%20and%20not%20just%20make%20it%20hard%20coded%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20help.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-359935%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Planner%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-360053%22%20slang%3D%22en-US%22%3ERe%3A%20User%20Microsoft%20Flow%20to%20post%20comment%20in%20Teams%20conversation%20channel%20more%20dynamically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-360053%22%20slang%3D%22en-US%22%3EThis%20isn't%20easy%20to%20reproduce%20for%20others%20to%20use%2C%20but%20what%20you%20need%20to%20do%20is%20use%20the%20%22Get%20Task%20details%22%20after%20the%20trigger.%20There%20you%20can%20get%20the%20planner%20ID%20and%20use%20the%20plan%20Id%20in%20a%20condition%20and%20only%20post%20to%20Teams%20if%20it%20equal%20to%20the%20plan%20ID%20you%20only%20want%20posted%20into%20that%20Team.%20%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20far%20as%20dynamically%20doing%20this%2C%20there%20really%20isn't%20a%20way%2C%20because%20the%20actions%20do%20not%20return%20a%20way%20to%20link%20back%20to%20what%20Team%20the%20plan%20is%20tied%20too.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-360047%22%20slang%3D%22en-US%22%3ERe%3A%20User%20Microsoft%20Flow%20to%20post%20comment%20in%20Teams%20conversation%20channel%20more%20dynamically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-360047%22%20slang%3D%22en-US%22%3EYeah%2C%20that%E2%80%99s%20what%20I%20was%20thinking!%20Yeah%2C%20it%E2%80%99s%20a%20bit%20of%20manual%20work!%20Guess%20it%20also%20depends%20on%20how%20often%20you%20need%20to%20do%20it%20%3A)%3C%2Fimg%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-360039%22%20slang%3D%22en-US%22%3ERe%3A%20User%20Microsoft%20Flow%20to%20post%20comment%20in%20Teams%20conversation%20channel%20more%20dynamically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-360039%22%20slang%3D%22en-US%22%3EThat's%20what%20I%20was%20thinking%20about%20too%20Adam.%20However%20I%20did%20find%20a%20way%20to%20do%20it%2C%20but%20it%20requires%20a%20lot%20of%20extra%20work.%20What%20you%20have%20to%20do%20is%20open%20the%20Planner%20plan%20in%20your%20browser%2C%20locate%20the%20Plan%20ID%20in%20the%20URL%2C%20copy%20that%20plan%20ID%2C%20then%20use%20that%20as%20a%20condition%20of%20whether%20to%20post%20a%20message%20or%20not.%20Granted%20it%20works%2C%20but%20is%20definitely%20now%20the%20desired%20outcome%20as%20this%20is%20a%20lot%20of%20extra%20manual%20work.%20Hopefully%20they%20come%20out%20with%20something%20better%20soon.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-359941%22%20slang%3D%22en-US%22%3ERe%3A%20User%20Microsoft%20Flow%20to%20post%20comment%20in%20Teams%20conversation%20channel%20more%20dynamically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359941%22%20slang%3D%22en-US%22%3EYou%20somehow%20needs%20to%20trigger%20on%20a%20certain%20plan!%20Maybe%20trigger%20like%20you%20do%20right%20now%20but%20with%20a%20condition%20to%20only%20trigger%20if%20the%20plan%20is%20%E2%80%9Cdesired%20plan%E2%80%9D%3C%2FLINGO-BODY%3E
Occasional Contributor

So I was working on some pieces regarding Teams, Flow and Planner. While I have the logic of what to pull from Teams figured out (sort of, but that another story), I happened to notice that the way the logic is setup that when you choose the Output method for Planner of "When task is assigned to me", I choose to have is post a comment in the channel of who assigned the task to whom. However, I found out while working on another one of my planners that when I created a task and assigned it to myself, it made a post in the channel that wasn't even part of this planner.

 

So my question is this:

  1. How do you make the "Post Message" action more dynamic? As in the option to post a message to the Channel that the Planner belongs to and not just make it hard coded?

 

Thanks for the help. :)

4 Replies
You somehow needs to trigger on a certain plan! Maybe trigger like you do right now but with a condition to only trigger if the plan is “desired plan”
That's what I was thinking about too Adam. However I did find a way to do it, but it requires a lot of extra work. What you have to do is open the Planner plan in your browser, locate the Plan ID in the URL, copy that plan ID, then use that as a condition of whether to post a message or not. Granted it works, but is definitely now the desired outcome as this is a lot of extra manual work. Hopefully they come out with something better soon.
Yeah, that’s what I was thinking! Yeah, it’s a bit of manual work! Guess it also depends on how often you need to do it :)

Adam
best response confirmed by Ryan_Wakefield (Occasional Contributor)
Solution
This isn't easy to reproduce for others to use, but what you need to do is use the "Get Task details" after the trigger. There you can get the planner ID and use the plan Id in a condition and only post to Teams if it equal to the plan ID you only want posted into that Team.

As far as dynamically doing this, there really isn't a way, because the actions do not return a way to link back to what Team the plan is tied too.
www.000webhost.com