You need to sign in to do that
Don't have an account?
IF LEN statemnent - can't pass syntax checker!
Hi -
I'm trying to create a formula (in a workflow)-
If the Length of field "Invoice Line Number" is 1,
make the field "Invoice_Number + "-0" + "Invoice Line Number" (add a zero to Invoice line number in front)
otherwise, just make the result "Invoice_Number + "-" + "Invoice Line Number"
My formula:
IF(LEN(TEXT(Invoice_Line_Number__c)),1, ("0"+ TEXT(Invoice_Line_Number__c)), (Invoice_Line_Number__c))
I keep getting Syntax errors, such as
Error: Incorrect parameter type for function 'IF()'. Expected Boolean, received Number
I have tried all sorts of changes, like putting the "1" in quotes, I have counted the parenthesis, and nothing is getting this right.
Thank you!!
Sara
Hi Sara,
Try this:
Regards, jh
All Answers
Hi Sara,
Try this:
Regards, jh
Edited my reply, some extra parens got inserted.
Hi,
The first parameter of the IF function is an expresssion that needs to be either True or False.
Try this:
Regards,
Hengky
Thanks! I must have had other errors when I tried the "=" sign - all set now. Much appreciated
Thanks. I like the line spacing/formatting you used, too. I have to get in that habit.