0

I am receiving the following error when I create the following formula field on activities:

The value of a parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit.

Here is the formula - Is this because I am using WHOID?

IF(
 Demo_Set__c = true ,
CASESAFEID(WhoId) ,
"")
2
  • 2
    What type did you declare this formula as producing? (I.e. the formula field) – Phil W Mar 16 '20 at 22:44
  • @PhilW it is a text field – Matthew Metros Mar 16 '20 at 23:37
2

Use NULL instead of "".

IF(Demo_Set__c, CASESAFEID(WhoId), NULL)

Passing in an empty string for an ID value isn't allowed, so that may be the source of your problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.