Find method offers different ways to query salesforce data
Method |
Supported signatures |
findById
|
* findById(ids) // select all fields where Id in ids
* findById(ids, fieldNames) // select fieldNames where Id in ids
* findById(ids, fieldNames, appendOptions) // select fieldNames where Id in ids with the appendOptions
|
findBy
|
* findBy(fieldName, fieldValues) // select all fields where fieldName in fieldValues
* findBy(fieldName, fieldValues, fieldNames) // select fieldNames where fieldName in fieldValues
* findBy(fieldName, fieldValues, fieldNames, appendOptions) // select fieldNames where fieldName in fieldValues with the appendOptions
* findBy(Condition) // select all fields where condition is true
* findBy(Condition, fieldNames) // select fieldNames where condition is true
* findBy(Condition, fieldNames, appendOptions) // select fieldNames where condition is true with the appendOptions
|
Method |
Supported signatures |
findMapById |
* findMapById(ids) // select all fields where Id in ids
* findMapById(ids, fieldNames) // select fieldNames where Id in ids
* findMapById(ids, fieldNames, appendOptions) // select fieldNames where Id in ids with the appendOptions
|
findMapBy |
* findMapBy(fieldName, fieldValues) // select all fields where fieldName in fieldValues
* findMapBy(fieldName, fieldValues, fieldNames) // select fieldNames where fieldName in fieldValues
* findMapBy(fieldName, fieldValues, fieldNames, appendOptions) // select fieldNames where fieldName in fieldValues with the appendOptions
* findMapBy(Condition) // select all fields where condition is true
* findMapBy(Condition, fieldNames) // select fieldNames where condition is true
* findMapBy(Condition, fieldNames, appendOptions) // select fieldNames where condition is true with the appendOptions
|
Method |
Supported signatures |
findOne |
* findOne() // select all fields where limit is 1
|
findOneById |
* findOneById(ids) // select all fields where Id in ids
* findOneById(ids, fieldNames) // select fieldNames where Id in ids
|
findOneBy |
* findOneBy(fieldName, fieldValue) // select all fields where fieldName is equal to fieldValue
* findOneBy(fieldName, fieldValue, fieldNames) // select fieldNames where fieldName is equal to fieldValue
* findOneBy(Condition) // select all fields where condition is true
* findOneBy(Condition, fieldNames) // select fieldNames where condition is true
|