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 Apps / ht Opening MS Teams fr...
Power Apps
Answered

ht Opening MS Teams from Employee Directory

(0) ShareShare
ReportReport
Posted on by 12

Hi,

I'm working on an Employee directory; everything works fine except for one thing. I want to be able to open MS Teams chat when I click on the chat icon. I use Launch("msteams://"), and when I click on the icon (Chat Icon), MS teams open with whoever I chatted recently. I want to open the user that I search in the Employee Directory. Please see the attached. Right now, the email icon works the way I wanted to be. When I click on the "Envelope" icon, Outlook opens with whoever I search in the Employee Directory. I'm using this formula: Launch("mailto:"&First(EmployeeProfile).Mail)

I'm hoping maybe there is a formula for MS Teams that has the same behavior. 

 

 

Thank you,

 

Oshin, 

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

    Hi @Oeskandarian ,

     

    Please try this:

     

    Launch("msteams://teams.microsoft.com/l/chat/0/0?users="& ThisItem.Email )

    Hope this helps.
    Sik

  • Oeskandarian Profile Picture
    12 on at

    Thanks for the reply. I try and got an error message under Action > OnSelect (please see the attached)

    It reads Name isn't valid. This identifier isn't recognized (under ThisItem.Email)

  • v-siky-msft Profile Picture
    on at

    Hi @Oeskandarian ,

     

    Ok, I thought the icon was located in the EditForm. 

    The correct pattern to launch Team resembles as follows:

    Launch("msteams://teams.microsoft.com/l/chat/0/0?users=user@domain.com")

     

    You just need to modify the user's email to fit your scenario. It seems User's Email is shown in a Label, so try this:

    Launch("msteams://teams.microsoft.com/l/chat/0/0?users=" & EmailLabel.Text)

     

    Sik

     

  • Oeskandarian Profile Picture
    12 on at

    Thanks for the reply.
    Here's how I get the information for the IM label:
    Under the Advanced > Test> First(EmployeeProfile).Mail
    I feel like I didn't give you enough information. Please see the attached screenshots from both Textbox & Message Icon. I think the way I'm displaying the user's email address doesn't work with the suggested pattern. I can change how I get the information for the IM textBox. I appreciate your help. I have another attachment from email icon; that one works fine( when I click on the email icon, Outlook opens with the user email already filed). I was hoping If I could copied the same function, but it didn't work for Teams. your function/pattern work if I remove &EmailLabel.Text. it opens Teams but whoever I chatted last not that specific user I search in the app.

     

     

    Employee Directory - IM Box.jpg

     

     

    Employee Directory -Icon.jpg

     

     

     

     

    Employee Directory - Email Icon.jpg

  • v-siky-msft Profile Picture
    on at

    Hi @Oeskandarian ,

     

     

    Launch("msteams://teams.microsoft.com/l/chat/0/0?users=" & First(EmployeeProfile).Mail)

     

    For more details: Generating a deep link to a chat 

     

    Sik

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard