Back to column formats
Column formattingSharePoint Online

Teams Call Format

This sample uses Microsoft Teams deep links to create links from selected user that allow to make Microsoft Teams calls to user.

teams call format
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.

Column formatting
Download JSON
{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "children": [
    {
      "elmType": "div",
      "style": {
        "position": "relative"
      },
      "children": [
        {
          "forEach": "personIterator in @currentField",
          "elmType": "div",
          "style": {
            "padding": "5px 0px"
          },
          "children": [
            {
              "elmType": "span",
              "txtContent": "[$personIterator.title]"
            },
            {
              "elmType": "div",
              "style": {
                "text-decoration": "none",
                "vertical-align": "middle",
                "position": "relative",
                "font-size": "42pt"
              },
              "attributes": {
                "iconName": "TeamsLogo",
                "class": "ms-fontColor-themePrimary sp-field-quickAction"
              },
              "children": [
                {
                  "elmType": "div",
                  "style": {
                    "position": "absolute",
                    "display": "inline-block",
                    "left": "80px",
                    "width": "300px",
                    "top": "-30px",
                    "cursor": "pointer",
                    "height": "0px"
                  },
                  "children": [
                    {
                      "elmType": "a",
                      "style": {
                        "text-decoration": "none",
                        "vertical-align": "middle"
                      },
                      "attributes": {
                        "iconName": "Phone",
                        "class": "ms-fontColor-themePrimary sp-field-quickAction ms-fontSize-20",
                        "href": "='https://teams.microsoft.com/l/call/0/0?users=' + [$personIterator.sip]"
                      }
                    },
                    {
                      "elmType": "a",
                      "style": {
                        "text-decoration": "none",
                        "vertical-align": "middle"
                      },
                      "attributes": {
                        "iconName": "CalculatorAddition",
                        "class": "ms-fontColor-themePrimary sp-field-quickAction ms-fontSize-10",
                        "href": "='https://teams.microsoft.com/l/call/0/0?users=' + [$personIterator.sip]"
                      }
                    },
                    {
                      "elmType": "a",
                      "style": {
                        "text-decoration": "none",
                        "vertical-align": "middle"
                      },
                      "attributes": {
                        "iconName": "VideoOff",
                        "class": "ms-fontColor-themePrimary sp-field-quickAction ms-fontSize-20",
                        "href": "='https://teams.microsoft.com/l/call/0/0?users=' + [$personIterator.sip]"
                      }
                    }
                  ]
                },
                {
                  "elmType": "div",
                  "style": {
                    "position": "absolute",
                    "display": "inline-block",
                    "left": "80px",
                    "width": "300px",
                    "top": "0px",
                    "cursor": "pointer",
                    "height": "0px"
                  },
                  "children": [
                    {
                      "elmType": "a",
                      "style": {
                        "text-decoration": "none",
                        "vertical-align": "middle"
                      },
                      "attributes": {
                        "iconName": "Phone",
                        "class": "ms-fontColor-themePrimary sp-field-quickAction ms-fontSize-20",
                        "href": "='https://teams.microsoft.com/l/call/0/0?users=' + [$personIterator.sip]+'&withVideo=true'"
                      }
                    },
                    {
                      "elmType": "a",
                      "style": {
                        "text-decoration": "none",
                        "vertical-align": "middle"
                      },
                      "attributes": {
                        "iconName": "CalculatorAddition",
                        "class": "ms-fontColor-themePrimary sp-field-quickAction ms-fontSize-10",
                        "href": "='https://teams.microsoft.com/l/call/0/0?users=' + [$personIterator.sip]+'&withVideo=true'"
                      }
                    },
                    {
                      "elmType": "a",
                      "style": {
                        "text-decoration": "none",
                        "vertical-align": "middle"
                      },
                      "attributes": {
                        "iconName": "Video",
                        "class": "ms-fontColor-themePrimary sp-field-quickAction ms-fontSize-20",
                        "href": "='https://teams.microsoft.com/l/call/0/0?users=' + [$personIterator.sip]+'&withVideo=true'"
                      }
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

From the contributor

How to use this sample

Summary

This sample uses Microsoft Teams deep links to create links from selected user that allow to make Microsoft Teams calls to user.

screenshot of the sample

View requirements

  • The format expect the following fields:
Field Type
Person Person - Person field with multiple selections

Sample

Solution Author(s)
person-teams-call-format.json André Lage

Version history

Version Date Comments
1.0 December 16, 2021 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.