You need to sign in to do that
Don't have an account?

Workflow rule Error: Function REGEX may not be used in this type of formula
I am using the REGEX function in a workflow rule, but I keep getting an error
Error: Function REGEX may not be used in this type of formula
I checked https://help.salesforce.com/htviewhelpdoc?id=customize_functions_i_z.htm&siteLang=en_US#REGEX (https://help.salesforce.com/htviewhelpdoc?id=customize_functions_i_z.htm&siteLang=en_US#REGEX) and it says that REGEX is available everywhere except formula fields and custom buttons.
Can anyone tell me why this is not working?
Error: Function REGEX may not be used in this type of formula
I checked https://help.salesforce.com/htviewhelpdoc?id=customize_functions_i_z.htm&siteLang=en_US#REGEX (https://help.salesforce.com/htviewhelpdoc?id=customize_functions_i_z.htm&siteLang=en_US#REGEX) and it says that REGEX is available everywhere except formula fields and custom buttons.
Can anyone tell me why this is not working?
RecordType.DeveloperName = 'IT Case' && REGEX(Description, '[A-Z]{3}[0-9]{1}')
For using REGEX, you need to select Evaluation criteria as 'created, and every time it’s edited', REGEX is not allowed to be used in this type of functions. Please see the screenshot at below:
If you need any other workflow criteria, then either change the formula or you can do the same in apex triggers. Let me know, if you need any other help.
Thanks,
Neetu
All Answers
For using REGEX, you need to select Evaluation criteria as 'created, and every time it’s edited', REGEX is not allowed to be used in this type of functions. Please see the screenshot at below:
If you need any other workflow criteria, then either change the formula or you can do the same in apex triggers. Let me know, if you need any other help.
Thanks,
Neetu