Hello,
I am wondering if there is a simple way to get user information when creating a fragment on section system.user.hover.link.
My goal is to create a simple link to open a Teams chat with a link such as:
msteams:/l/chat/0/0?users=$user.email
Any idea ?
Thanks a lot.
I don't use MS Teams ... but I don't think you can open the Teams desktop app.
I found this: https://microsoftteams.uservoice.com/forums/555103-public/suggestions/34501303-open-links-to-teams-in-desktop-app
But with the webitem fragment ... if you want to point to some website with the user's email address, you can add that to your url with users=$user.emailAddress.
Maybe you can try: https://teams.microsoft.com/l/chat/0/0?users=$user.emailAddress
Although this is an old entry, it showed up when I was searching for a similar solution. So for those stumbling about it after me:
$user.emailAddress
evaluates to the email address of the current user, not the profile User. Fortunately, there is the context variable profileUser, which differs from the user object as it is only the username of the profile user.
So to build a link with the profile users email address you can use the userUtils context variable and need to use:
$userutils.getUser($profileUser).getEmailAddress()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.