문제

I am unable to capture the Managed Metadata field within my JSON formatting. I can reference other fields by their Internal names but how would I go about grabbing that MMD value?

{
  "elmType": "a",
  "txtContent": "",
  "attributes": {
    "target": "_blank",
    "iconName": "OpenInNewWindow",
    "class": "sp-field-quickAction",
    "href": {
      "operator": "+",
      "operands": [
        "https://tenant.sharepoint.com/sites/newsite/Lists/listname/AllItems.aspx?ID=",
        "[$Custom_x0020_Field]"
      ]
    }
  }
}

The link doesn't generate which means there must be an error in the code. The Managed Metadata field is probably an object so what attribute can I reference to get the set value?

도움이 되었습니까?

해결책

Managed Metadata type of field is not supported in column formatting.

Supported column types

The following column types support column formatting:

Single line of text

Number

Choice

Person or Group

Yes/No

Hyperlink

Picture

Date/Time

Lookup

Title (in Lists)

The following are not currently supported:

Managed Metadata

Filename (in Document Libraries)

Calculated

Retention Label

Currency

Reference: Use column formatting to customize SharePoint

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top