Back to form formats
Form formattingSharePoint Online

Microsoft Teams chat with Task owner

This sample demonstrates displaying Microsoft Teams chat link to chat with task owner.

Microsoft Teams chat with Task owner formatting preview
Sample preview · View original image

Copy. Apply. Make it yours.

Get this format

1 definition

Review the requirements below, then paste this JSON into the matching formatting panel. Show me where.

Use your list's internal column names and replace any tenant-specific URLs or flow IDs. Formatting is presentation, not a way to secure data.

Form footer
Download JSON
{
  "elmType": "div",
  "style": {
    "width": "100%",
    "display": "=if([$Title] && [$AssignedTo.email], 'block', 'none')",
    "padding-top": "10px",
    "border-top": "1px solid"
  },
  "attributes": {
    "class": "ms-fontColor-neutralSecondary"
  },
  "children": [
    {
      "elmType": "a",
      "attributes": {
        "target": "_blank",
        "href": "='https://teams.microsoft.com/l/chat/0/0?users=' + [$AssignedTo.email] + '&message=This is related to your Task: ' + [$Title]",
        "class": "ms-fontColor-themePrimary"
      },
      "children": [
        {
          "elmType": "span",
          "txtContent": "Chat with Task Owner"
        },
        {
          "elmType": "span",
          "style": {
            "margin-left": "8px",
            "vertical-align": "middle"
          },
          "attributes": {
            "iconName": "TeamsLogo",
            "class": "ms-fontColor-themePrimary ms-fontSize-xl"
          }
        }
      ]
    }
  ]
}

From the contributor

How to use this sample

Summary

This sample demonstrates displaying Microsoft Teams chat link to chat with owner of the task in SharePoint list.

screenshot of the sample

Form requirements

Type Internal Name Required
Single line of text Title Yes
Person or Group AssignedTo Yes

Sample

Solution Author(s)
teams-chat-task-owner-footer.json Ganesh Sanap

Version history

Version Date Comments
1.0 October 15, 2022 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Additional notes

Microsoft Teams chat link uses deep link.