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 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?
jholzbau "start a chat with this person" can still be done with the oldschool:
teams.exe sip:name@company.com
But the deeplinks doc looks really promising. Did you also use them on teams.exe directly or with start msteams: or other the web-link ?
- jholzbauApr 20, 2022Copper Contributor
ericw190 here is what I ended up using:
To Chat with someone: msteams:/l/chat/0/0?users=[username]@[company].com
To Video Call someone: msteams:/l/call/0/0?users=[username]@[company].com&withVideo=true
Very helpful.
- ericw190Apr 27, 2022Brass Contributor
Yeah Nice! True these call work directly from Run dialog.
Another awesome benefit over the sip:-method is that we can simply add chat members like so:msteams:/l/chat/0/0?users=name1@company.com,name2@company.com