function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ylabarreylabarre 

Translate operation tag into SOQL

Hello,

 

I'm able to get my custom list view with the metadata API stored in the xml file zip. However, the tag "operation" contain the operation in letters and I would like to translate this definitions in operator SOQL. Is someone can give me the operator I should use for each operation below ?

 

equals

notEqual

lessThan

greaterThan

lessOrEqual

greaterOrEqual

notContain

contains

startsWith

 

Thank you by advance.

Best Answer chosen by Admin (Salesforce Developers) 
Pradeep_NavatarPradeep_Navatar

equals  : =

notEqual : !=

lessThan : <

greaterThan : >

lessOrEqual : <=

greaterOrEqual : >=

notContain  : EXCLUDE

contains   : INCLUDE

startsWith : LIKE a%