-1

I am trying to create a workflow rule that will evaluated two fields. A boolean field if it is equal to true, and a text field which is not empty

How can I accomplish the following in the formula:

if (field1__c equals = true) || field2__c is not empty) {
   return true
}
0

3 Answers 3

2

You could use the OR() function in combination with the NOT() and ISBLANK() functions to achieve something like this:

OR(Field1__c, NOT(ISBLANK(Field2__c)))

A full list of formula functions can be found in the salesforce help here

2

field1__c || !ISBLANK(field2__c) or OR(field1__c, NOT(ISBLANK(field2__c)))

0

You could try something like

 And(field__c==true ,  !ISBLANK(field2__c) ) 
2
  • field1__c is boolean
    – Nick
    Mar 23, 2016 at 16:33
  • From your description it is not clear if you require an AND or OR operator, any way the logic should remain the same regardless Mar 23, 2016 at 16:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .