I had a request today to create a saved search to list out customers whose comments field contains the word “SAP”.
Well, creating the search with the criteria as Comments contains the word ‘SAP’ won’t help as it will list out everything which has the words sap, like Sapphire or Disapproval.
Basically, we needed a case sensitive criterion. So, this is how we do it.
I am using the customer record as my test case.
- Navigate to Lists-> Search-> Saved Searches -> New
- Click Customer.
- Click Criteria tab.
- Click Standard sub tab.
- Select Formula (Numeric) under the Filter column.
- Enter the formula below on the Formula field:
CASE WHEN (INSTR({yourfieldname}, ‘A’)) <> 0 THEN 1 ELSE 0 END - Set the Formula (Numeric)to equal to.
- Set Valueto 1.
- Click Set.
- Add other criteria if needed.
- Preview
Well, pretty easy right. Give it a go and see how it goes.
Leave a Reply