Salesforce Fact #716 | Using LIKE operator in dynamic SOQL

How to use LIKE operator in dynamic SOQL? We can use a separate string variable to store the pattern part which includes the symbol '%' and use this as a bind variable or we can use extra single quotes before and after of '%'.

Reference: https://developer.salesforce.com/forums/?id=906F000000093YjIAI

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #218 | Blank picklist value is actually NULL

Salesforce Fact #947 | Resolving dashboard logged-in user limit error

Salesforce Fact #989 | New delete files permission