I'm trying, in SharePoint Online, to make a column formatting that gets the file name but without the extension.
I've written a code that uses $FileLeafRef to get that, but it also returns the extension (ex.: document.docx)
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"txtContent": "[$FileLeafRef]"
}
I'd like to know if there is a possibility, like in PHP, to return only what is before the "."
Thanks