Home SALESFORCE When to use SOQL and SOSL

When to use SOQL and SOSL
When to use SOQL:

  • The sObject type is predetermined.
  • Result data needs to be joined.
  • You want to query beyond text, email, or phone fields.
  • The query needs to be run from a trigger.

When to use SOSL:

  • Searches need to occur across multiple types.

You may also like

Leave a Comment

*