Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
scroll top