When I use an a element in JSON to generate a mailto-link, everything works fine:
{ "elmType": "a", "style": { "position": "absolute", "left": "20px", "width": "40px", "height": "40px", "line-height": "40px", "border-radius": "50%", "text-align": "center", "cursor": "pointer", "text-decoration": "none" }, "attributes": { "iconName": "Mail", "class": "ms-fontColor-neutralSecondary ms-fontWeight-semibold", "href": "='mailto:' + [$Profil.email]", "title": "='Eine Email an ' + [$Title] + ' schreiben'" } }
This code generates a clickable icon, which opens the mail-client with the email address provided by the people field Profil. However, if I generate a second mailto-link with the same technique for a list entry, it seems to break the code and displays nothing. Also if I use callto: (to start a Teams call) instead of mailto: it doesn't work.
If I just use one of both linktypes the list element displays fine.
I figured out that it seems to be because of the : but can't find a way to get around it. Using AST formatting didn't help either.
EDIT:
The callto: link, which cannot be used in a JSON format, can be replaced with a valid https-link according to this article here. It needs to be in this format:
https://teams.microsoft.com/l/call/0/[email protected]