Forum Discussion
Command Line args to goto channels directly?
- Sep 28, 2021
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! 🤘
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:
ericw190 how do you retrieve the channel_id?
OK. Step by step:
- Click the "..." on any channel.
- Hit Get link to channel
- From this huuge link take the part after "channel/19%3a" and before "%40thread.tacv2" ..
- or like described above^ convert %-notation first (%3a to : and %40 to @) and take the part after : and before @
- for example:
- https://teams.microsoft.com/l/channel/19%3ahshgsdfgsdfgsdfgsdfgsdfgsdfgsdfg%40thread.tacv2/General?groupId=asdasdas-dasd-asda-sdas-dsadasdasdas&tenantId=asd765as-d675-as67-d57a-s6d57sad5sda%40thread.tacv2/General?groupId=asdasdas-dasd-asda-sdas-dsadasdasdas&tenantId=asd765as-d675-as67-d57a-s6d57sad5sda becomes:
- hshgsdfgsdfgsdfgsdfgsdfgsdfgsdfg
- that's what I called channel_id.
- jholzbauApr 12, 2022Copper Contributor
ericw190 I'm looking for something a bit simpler.
All I want to do are basic command line switches like "start a chat with this person" or "call this person" from the Run prompt in Windows.
For Outlook, this is really simple. Here's an example for starting an email from the Run prompt:
outlook.exe /c ipm.note
I would like to do the same for Teams, but there is no published documentation on actual command line switches. Just the shortcuts that people can type manually in the search window of the actual application, like: /call
I want the ability to start a call with someone, or start a new message, without being in the Teams app at that particular time.
Can this be done?
- AnqB0VVRJMzsO6zVApr 12, 2022Iron Contributorhttps://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links#generate-a-deep-link-to-a-chat
this Doc will help
and one tricky for channel:
get "tab" link in your channel, it's a easy way to find key information
Then break the link(delete some letter in tab part), thanks to MS this will make you jump to channel-posts(main page).
or of couse, do that in the formal way through the Doc- jholzbauApr 21, 2022Copper Contributor
AnqB0VVRJMzsO6zV I have figured out how to jump directly to a channel from the Run menu -- thank you.
Here is where I'm struggling now, though. My weekly team meeting has a lively chat that continues in perpetuity. We chat during the meeting, and we keep chatting until the next meeting, and so on. We don't actually choose the channel for discussion....we use the Chat for the actual recurring meeting, which presents to me as just another chat thread.
I'm able to jump to various chat threads with the deep links (e.g. msteams:/l/chat/0/0?users=[list of email addresses]&topicName=[chat thread name]. But I can't use that same method to jump to the "chat" of a recurring teams meeting. I assume because what I'm passing via deep link is the list of users and the name of the thread, but *not* the actual meeting ID.
Is there a way to pass the meeting ID into this, so that I can quickly jump to the "chat" for the meeting? Something like this, perhaps?
msteams:/l/chat/0/0?users=[list of email addresses]&topicName=[chat thread name]&meetingID=[meeting ID]
- erik-on-windowsNov 03, 2021Copper Contributor
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/- ericw190Nov 03, 2021Brass ContributorAh 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 ...