I am trying to encrypt field Lead.Name but it fails due to:
Encryption can't be enabled for fields referenced in the custom formula fields: Lead.Data Quality Description.
I checked this formula field and all functions are allowed as listed here: documentation This is the definition of the text formula field:
IF(
Data_Quality_Score__c = 100,
"All Lead Details Captured",
"Missing: " &
IF(
ISNULL(FirstName),
"First Name, ",
""
)
& "" &
IF(
ISNULL(LastName),
"Last Name, ",
""
)
& "" &
IF(
ISNULL(Company),
"Company, ",
""
)
& "" &
IF(
ISNULL(Phone),
"Phone, ",
""
)
& "" &
IF(
ISPICKVAL(Salutation, ""),
"Salutation, ",
""
)
& "" &
IF(
ISPICKVAL(Rating, ""),
"Rating, ",
""
)
& "" &
IF(
ISNULL(City),
"Complete Address, ",
""
)
& "" &
IF(
ISNULL(Email),
"Email",
""
)
)
=
operator is not in the list. Have you tried removing it?""
withNULL
and the concatenation works as expected; I agree with Swetha -- I had similar issue and had to encrypt first, then create the formula.