SOLVED

Command Line args to goto channels directly?

%3CLINGO-SUB%20id%3D%22lingo-sub-2771272%22%20slang%3D%22en-US%22%3ECommand%20Line%20args%20to%20goto%20channels%20directly%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2771272%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%20So%20in%20our%20custom%20tools%20we%20try%20to%20give%20quick%20access%20to%20the%20responsible%20people.%20Its%20already%20possible%20to%20chat%20with%20co-workers%20in%20Teams%20with%20a%20click.%20In%20the%20background%3A%20getting%20the%20executable%20from%20%60%3CSTRONG%3ELOCALAPPDATA%3C%2FSTRONG%3E%60%20%3CSTRONG%3E%2B%20%5CMicrosoft%5CTeams%5Ccurrent%5CTeams.exe%3C%2FSTRONG%3E%20works%20pretty%20reliable%20then%20just%20call%20this%20with%20%60%3CSTRONG%3Esip%3Aname%40company.com%3C%2FSTRONG%3E%60%20and%20Voil%C3%A0%20we%20chat!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20I'd%20like%20users%20to%20be%20able%20to%20goto%20public%20channels%20with%20a%20click.%20I%20can%20get%20a%20link%20with%20%3CSTRONG%3EGet%20link%20to%20channel%3C%2FSTRONG%3E.%20But%20running%20%3CSTRONG%3ETeams.exe%3C%2FSTRONG%3E%20with%20this%20link%20does%20nothing!%20Just%20opens%20up%20the%20Teams%20main%20window%20with%20whatever%20was%20just%20open.%20No%20change.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20CAN%20just%20%22run%22%20this%20link%20with%20the%20webbrowser%20but%20then%20the%20user%20has%20to%20accept%20to%20always%20open%20the%20according%20links%20with%20MS%20Teams%20which%20is%20do-able%20but%20rather%20crude%20for%20some%20simpler%20users.%20And%20STILL%20one%20would%20have%20a%20useless%20web%20page%20open.%20Maybe%20the%20user%20doesn't%20even%20have%20a%20browser%20open...%20However%20it%20would%20be%20quite%20great%20to%20just%20go%20like%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ETeams.exe%20%25channel_link%25%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20%3CSTRONG%3Ecommand%20line%20switch%3C%2FSTRONG%3E%20do%20I%20need%3F%3C%2FP%3E%3CP%3EIs%20there%20a%20%3CSTRONG%3Elist%20of%20command%20line%20switches%3C%2FSTRONG%3E%3F%20like%20the%20sip%3A%20one%3F%3C%2FP%3E%3CP%3EI'd%20love%20to%20do%20sth%20like%20%3CSTRONG%3ETeams.exe%20%2F%3F%3C%2FSTRONG%3E%20or%20%3CSTRONG%3E-help%3C%2FSTRONG%3E%20...%3C%2FP%3E%3CP%3Ebtw%3A%20Currently%20there%20is%20a%20big%20fat%20ERROR%20msg%20when%20you%20do%20Teams%20on%20the%20console%20window%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3EError%20while%20parsing%20hooks%20JSON.%20Error%3A%20%22ENOENT%3A%20no%20such%20file%20or%20directory%2C%20open%20'C%3A%5C%5CUsers%5C%5Ctecharteric%5C%5CAppData%5C%5CRoaming%5C%5CMicrosoft%5C%5CTeams%5C%5Chooks.json'%22%0A(node%3A17212)%20%5BDEP0005%5D%20DeprecationWarning%3A%20Buffer()%20is%20deprecated%20due%20to%20security%20and%20usability%20issues.%20Please%20use%20the%20Buffer.alloc()%2C%20Buffer.allocUnsafe()%2C%20or%20Buffer.from()%20methods%20instead.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2771272%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EChat%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2778132%22%20slang%3D%22en-US%22%3ERe%3A%20Command%20Line%20args%20to%20goto%20channels%20directly%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2778132%22%20slang%3D%22en-US%22%3ECould%20you%20please%20provide%20us%20with%20the%20commands%20that%20you%20are%20using%20and%20repro%20steps%3F%20So%20that%20it%20would%20be%20helpful%20for%20us%20to%20repro%20the%20issue.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2791413%22%20slang%3D%22en-US%22%3ERe%3A%20Command%20Line%20args%20to%20goto%20channels%20directly%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2791413%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1092848%22%20target%3D%22_blank%22%3E%40Meghana-MSFT%3C%2FA%3EI'm%20sorry%20I%20get%20the%20strong%20feeling%20that%20my%20post%20was%20not%20read%20%3A%7C%3C%2Fimg%3E%20ok...%20commands%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CEM%3Emain%20issue%3A%20%3C%2FEM%3ECommand%20Line%20args%20to%20goto%20channels%20directly%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20main%20%22command%22%20I'm%20using%20is%20%3CSTRONG%3ETeams.exe%3C%2FSTRONG%3E%20the%20executable%20to%20run%20the%20Teams%20application%20on%20Windows.%3C%2FP%3E%3CP%3ESo%20from%20another%20application%20I%20want%20to%20be%20able%20to%20run%20the%20%3CSTRONG%3ETeams.exe%3C%2FSTRONG%3E%20with%20a%20%3CSTRONG%3Ecommand%20line%3C%2FSTRONG%3E%20switch%20to%20open%20a%20certain%20channel%20directly%20WITHOUT%20going%20over%20the%20browser.%3C%2FP%3E%3CP%3EAnother%20%22command%22%20I'm%20using%20is%20the%20%3CSTRONG%3E%3Alink%3AGet%20link%20to%20channel%3C%2FSTRONG%3E%20option%20from%20a%20channel%20I%20want%20to%20link%20to.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20just%20like%20one%20can%20do%20%3CSTRONG%3ETeams.exe%20sip%3Ausername%40company.com%3C%2FSTRONG%3E%20to%20chat%20directly%20with%20a%20given%20user%3C%2FP%3E%3CP%3EI'd%20like%20to%20be%20able%20to%20do%20something%20like%20%3CSTRONG%3ETeams.exe%20channel%3A%3CA%20href%3D%22https%3A%2F%2Fteams.microsoft.com%2Fl%2Fchannel%2F19%253acb55..%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fteams.microsoft.com%2Fl%2Fchannel%2F19%253acb55..%3C%2FA%3E.%20%3C%2FSTRONG%3Eto%20open%20up%20Teams%20with%20the%20desired%20channel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOf%20course%20this%20does%20not%20work.%20What%20%22works%22%20is%20opening%20the%20channel%20link%20with%20a%20browser.%20But%20ONLY%20if%20the%20user%20already%20enabled%20all%20the%20required%20checks%20to%20make%20the%20Browser%20entitled%20to%20do%20so.%20And%20then%20one%20still%20has%20a%20Browser%20open%20and%20a%20website%20which%20does%20not%20close%20on%20its%20own.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I'm%20asking%20for%20a%20command%20line%20argument%20to%20make%20that%20happen!%3C%2FP%3E%3CP%3EOK.%20How%20can%20I%20search%20on%20my%20own%3A%20DuckDuckGo%3F%20Google%3F%20Bing%3F%20..%20There%20seems%20to%20be%20nothing%20of%20value%20%3A%5C%3C%2Fimg%3E%20sadly.%20Also%20the%20internal%20Help%20does%20not%20yield%20anything.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20finally%20like%20with%20any%20apps%20that%20do%20thing%20over%20the%20command%20line%20one%20can%20try%20%22%3CSTRONG%3Ehelp%3C%2FSTRONG%3E%22%20switches%20like%3A%26nbsp%3B%20%3CSTRONG%3E%2F%3F%20-help%20-h%20--help%20-%3F%3C%2FSTRONG%3E%20...%20however%20nothing%20seems%20to%20work.%20All%20just%20open%20up%20the%20Teams%20app.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20whenever%20you%20do%20that%20...%20also%20without%20ANY%20arguments%20the%20app%20will%20also%20print%20this%20%3CSTRONG%3EDeprecationWarning%3C%2FSTRONG%3E%20to%20the%20console.%20Repro%3A%3C%2FP%3E%3CUL%3E%3CLI%3EPress%20%3CSTRONG%3EWin%3C%2FSTRONG%3E%20key%3C%2FLI%3E%3CLI%3Etype%20%3CSTRONG%3Ecmd%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3EPress%20%3CSTRONG%3EEnter%3C%2FSTRONG%3E%20key%3C%2FLI%3E%3CLI%3Etype%20or%20copy%2Fpaste%3CBR%20%2F%3E%3CSTRONG%3Ecd%20%25LOCALAPPDATA%25%5CMicrosoft%5CTeams%5Ccurrent%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3Etype%20%3CSTRONG%3ETeams.exe%20%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3EPress%20%3CSTRONG%3EEnter%3C%2FSTRONG%3E%20key%3C%2FLI%3E%3C%2FUL%3E%3CP%3EResult%3A%3C%2FP%3E%3CUL%3E%3CLI%3ETeams%20app%20opens%20up%3C%2FLI%3E%3CLI%3Emessage%20in%20the%20cmd%20window%3A%3CBR%20%2F%3E%3CSTRONG%3E(node%3A9612)%20%5BDEP0005%5D%20DeprecationWarning%3A%20Buffer()%20is%20deprecated%20due%20to%20security%20and%20usability%20issues.%20Please%20use%20the%20Buffer.alloc()%2C%20Buffer.allocUnsafe()%2C%20or%20Buffer.from()%20methods%20instead.%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EMy%20version%20is%20%3CSTRONG%3E1.4.0.22976%20%3C%2FSTRONG%3Eat%20least%20that's%20the%20version%20detail%20on%20the%20executable.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2791459%22%20slang%3D%22en-US%22%3ERe%3A%20Command%20Line%20args%20to%20goto%20channels%20directly%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2791459%22%20slang%3D%22en-US%22%3E%3CP%3EAlright%20%3CSTRONG%3EI%20got%20it%3C%2FSTRONG%3E!%20the%20command%20line%20switch%20to%20do%20this%20is%20%3CSTRONG%3Emsteams%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20just%20took%20such%20a%20channel%20link%2C%20quit%20Teams%20from%20the%20sys%20tray%2C%20The%20browser%20opens%20it%20with%20the%20command%20I'm%20looking%20for%20and%20then%20it%20will%20still%20be%20on%20the%20command%20line%20args%20of%20the%20running%20Teams.exe!%20%3Asign_of_the_horns%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20noticed%20is%20that%20the%20link%20is%20UBER%20long!%20In%20my%20case%20345%20characters.%3C%2FP%3E%3CP%3EThe%20app%20actually%20%3CSTRONG%3Ecomplains%3C%2FSTRONG%3E%20about%20a%20LOT%20of%20stuff%20in%20there%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E'tenantId'%20is%20not%20recognized%20as%20an%20internal%20or%20external%20command%2C%0Aoperable%20program%20or%20batch%20file.%0A'deeplinkId'%20is%20not%20recognized%20as%20an%20internal%20or%20external%20command%2C%0Aoperable%20program%20or%20batch%20file.%0A'launchAgent'%20is%20not%20recognized%20as%20an%20internal%20or%20external%20command%2C%0Aoperable%20program%20or%20batch%20file.%0AThe%20system%20cannot%20find%20the%20file%20specified.%0A%0A'directDl'%20is%20not%20recognized%20as%20an%20internal%20or%20external%20command%2C%0Aoperable%20program%20or%20batch%20file.%0A'msLaunch'%20is%20not%20recognized%20as%20an%20internal%20or%20external%20command%2C%0Aoperable%20program%20or%20batch%20file.%0A'enableMobilePage'%20is%20not%20recognized%20as%20an%20internal%20or%20external%20command%2C%0Aoperable%20program%20or%20batch%20file.%0A'fqdn'%20is%20not%20recognized%20as%20an%20internal%20or%20external%20command%2C%0Aoperable%20program%20or%20batch%20file.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ESo%20these%20can%20ALL%20be%20stripped%20off%20the%20link%20already%20and%20even%20%3CSTRONG%3EgroupId%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Etype%3C%2FSTRONG%3E%20aren't%20needed!%3C%2FP%3E%3CP%3EOne%20can%20even%20shorten%20off%20the%20name%20up%20to%20the%20slash%20like%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3Emsteams%3A%2Fl%2Fchannel%2F19%3Avv8s7adsd9sdf7vs9fvd9f7v9d7s%40thread.tacv2%2F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Eand%20that's%20all%20you%20need%3A%20convert%20%3CSTRONG%3E%253a%3C%2FSTRONG%3E%20to%20%3CSTRONG%3E%3A%3C%2FSTRONG%3E%20and%20%3CSTRONG%3E%2540%3C%2FSTRONG%3E%20to%20%3CSTRONG%3E%40%3C%2FSTRONG%3E%20%2C%20cut%20off%20after%26nbsp%3B%3CSTRONG%3Etacv2%2F%3C%2FSTRONG%3E%20voil%C3%A0!%3C%2FP%3E%3CP%3EIf%20you'd%20like%20to%20store%20different%20channels%3A%20just%20take%20the%20ID%20between%20%3A%20and%20%40%20and%20use%20a%20template%20like%3C%2FP%3E%3CP%3E%3CSTRONG%3Emsteams%3A%2Fl%2Fchannel%2F19%3A%7Bchannel_id%7D%40thread.tacv2%2F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%F0%9F%99%87%E2%80%8D%3Afemale_sign%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2791509%22%20slang%3D%22en-US%22%3ERe%3A%20Command%20Line%20args%20to%20goto%20channels%20directly%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2791509%22%20slang%3D%22en-US%22%3E%3CP%3EAnother%20one.%20If%20you%20want%20to%20point%20to%20a%20message%20via%20command%20line%20and%20have%20it%20nicely%20highlighted%20this%20works%20very%20similarly%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Emsteams%3Al%2Fmessage%2F19%3A%7Bchannel_id%7D%40thread.tacv2%2F%7Bmessage_id%7D%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20you%20can%20get%20rid%20of%20%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fteams.microsoft.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fteams.microsoft.com%2F%3C%2FA%3E%3C%2FSTRONG%3E%20in%20the%20front%20and%20all%20%3CSTRONG%3Eafter%20%3F%3C%2FSTRONG%3E%20in%20the%20end.%3C%2FP%3E%3CP%3ETurns%20out%20the%20%3CSTRONG%3E%3F%3C%2FSTRONG%3E%20at%20the%20end%20is%20important!%20Just%20like%20the%20%3CSTRONG%3E%2F%3C%2FSTRONG%3E%20at%20the%20end%20of%20the%20channel%20template.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2869274%22%20slang%3D%22de-DE%22%3ERe%3A%20Command%20Line%20args%20to%20goto%20channels%20directly%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2869274%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F734116%22%20target%3D%22_blank%22%3E%40ericw190%3C%2FA%3E%20how%20do%20you%20retrieve%20the%20channel_id%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello! So in our custom tools we try to give quick access to the responsible people. Its already possible to chat with co-workers in Teams with a click. In the background: getting the executable from `LOCALAPPDATA` + \Microsoft\Teams\current\Teams.exe works pretty reliable then just call this with `sip:name@company.com` and Voilà we chat!

 

Now I'd like users to be able to goto public channels with a click. I can get a link with Get link to channel. But running Teams.exe with this link does nothing! Just opens up the Teams main window with whatever was just open. No change.

 

I CAN just "run" this link with the webbrowser but then the user has to accept to always open the according links with MS Teams which is do-able but rather crude for some simpler users. And STILL one would have a useless web page open. Maybe the user doesn't even have a browser open... However it would be quite great to just go like:

 

Teams.exe %channel_link%

 

What command line switch do I need?

Is there a list of command line switches? like the sip: one?

I'd love to do sth like Teams.exe /? or -help ...

btw: Currently there is a big fat ERROR msg when you do Teams on the console window:

Error while parsing hooks JSON. Error: "ENOENT: no such file or directory, open 'C:\\Users\\techarteric\\AppData\\Roaming\\Microsoft\\Teams\\hooks.json'"
(node:17212) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

 

8 Replies
Could you please provide us with the commands that you are using and repro steps? So that it would be helpful for us to repro the issue.

@Meghana-MSFTI'm sorry I get the strong feeling that my post was not read :| ok... commands

 

main issue: Command Line args to goto channels directly?

The main "command" I'm using is Teams.exe the executable to run the Teams application on Windows.

So from another application I want to be able to run the Teams.exe with a command line switch to open a certain channel directly WITHOUT going over the browser.

Another "command" I'm using is the :link:Get link to channel option from a channel I want to link to.

 

Now just like one can do Teams.exe sip:username@company.com to chat directly with a given user

I'd like to be able to do something like Teams.exe channel:https://teams.microsoft.com/l/channel/19%3acb55... to open up Teams with the desired channel.

 

Of course this does not work. What "works" is opening the channel link with a browser. But ONLY if the user already enabled all the required checks to make the Browser entitled to do so. And then one still has a Browser open and a website which does not close on its own.

 

So I'm asking for a command line argument to make that happen!

OK. How can I search on my own: DuckDuckGo? Google? Bing? .. There seems to be nothing of value :\ sadly. Also the internal Help does not yield anything.

 

And finally like with any apps that do thing over the command line one can try "help" switches like:  /? -help -h --help -? ... however nothing seems to work. All just open up the Teams app.

 

And whenever you do that ... also without ANY arguments the app will also print this DeprecationWarning to the console. Repro:

  • Press Win key
  • type cmd
  • Press Enter key
  • type or copy/paste
    cd %LOCALAPPDATA%\Microsoft\Teams\current
  • type Teams.exe
  • Press Enter key

Result:

  • Teams app opens up
  • message in the cmd window:
    (node:9612) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

My version is 1.4.0.22976 at least that's the version detail on the executable.

best response confirmed by ericw190 (Occasional Contributor)
Solution

Alright I got it! the command line switch to do this is msteams:

 

I just took such a channel link, quit Teams from the sys tray, The browser opens it with the command I'm looking for and then it will still be on the command line args of the running Teams.exe! :sign_of_the_horns:

 

What I noticed is that the link is UBER long! In my case 345 characters.

The app actually complains about a LOT of stuff in there:

'tenantId' is not recognized as an internal or external command,
operable program or batch file.
'deeplinkId' is not recognized as an internal or external command,
operable program or batch file.
'launchAgent' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.

'directDl' is not recognized as an internal or external command,
operable program or batch file.
'msLaunch' is not recognized as an internal or external command,
operable program or batch file.
'enableMobilePage' is not recognized as an internal or external command,
operable program or batch file.
'fqdn' is not recognized as an internal or external command,
operable program or batch file.

So these can ALL be stripped off the link already and even groupId and type aren't needed!

One can even shorten off the name up to the slash like:

msteams:/l/channel/19:vv8s7adsd9sdf7vs9fvd9f7v9d7s@thread.tacv2/

and that's all you need: convert %3a to : and %40 to @ , cut off after tacv2/ voilà!

If you'd like to store different channels: just take the ID between : and @ and use a template like

msteams:/l/channel/19:{channel_id}@thread.tacv2/

🙇‍:female_sign:

 

Another one. If you want to point to a message via command line and have it nicely highlighted this works very similarly:

 

msteams:l/message/19:{channel_id}@thread.tacv2/{message_id}?

 

So you can get rid of https://teams.microsoft.com/ in the front and all after ? in the end.

Turns out the ? at the end is important! Just like the / at the end of the channel template.

@ericw190 how do you retrieve the channel_id? 

@erik-on-windows 

ericw190_1-1635158068016.png

 

OK. Step by step:

ericw190_0-1635157784494.png

 

@ericw190 thanks for the step by step documentation. Seems so that on private channels "get link to channel" is not available. On a non-private channel it works like you described it. 

 

As well just with: 

C:\Windows\System32>start msteams:/l/channel/19:asdfasdfasdfasdfasdfdasf@thread.tacv2/

 

 

Ah nice! Good to know!

Yeah well, I didn't try this on private channels. The idea was to give all co-workers direct access to our channels from our custom tools ...