I am trying to use JSON to format a "Person" column in a Sharepoint list with an email action button.
I would like the email to contain a link to the Sharepoint list item in question, but the link contains ampersands (&).
Unfortunately the ampersand is a special character and chops the string after the 1st ampersand (as described here). Is there a way to stop this by getting the & to be treated as a symbol rather than a special character?
email action button
- do you mean<a>
withmailto:
?replaceAll()
operator in JSON column formatting, egreplaceAll([$myColumnName], '&', '%26')
. This works well when you know specifically what you are trying to find and replace, personally I am still looking for a solution that replaces ALL the characters that SharePoint needs to be encoded, there must be a smart regex-minded person out there who could figure that out :)