I have created two columns of type Single line of text
.
They reference a Person
column via the following JSON column formatting:
Department
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "[$Author.department]"
}
Job Title
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "[$Author.jobTitle]"
}
I get the desired behaviour of being able to see the following in the list:
Person Name | Business Department | Job Title
However, the following undesired behaviors are occurring:
Exported list has no values in the
Department
orJob Title
columnsThere are no values in the
Department
orJob Title
section that I can filter on
I understand why this is happening (because the JSON formatting is grabbing values after the data has loaded - and it is just formatting, not real data), but I am just wondering if there are any approaches to getting the desired behaviour working? i.e being able to export and filter on the Department
and Job Title
values.
I thought about using a Calculated Column
to reference the properties of the Person
column, but Person
is not supported.