0% found this document useful (0 votes)
148 views2 pages

SOQL and SQSL

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 2

SOQL and SQSL

What is difference between SOQL and SOSL in Salesforce?


SOQL (Salesforce Object Query Language ) retrieves the records from the database
by using “SELECT” keyword. SOSL (Salesforce Object Search Language) retrieves the
records from the database by using the “FIND” keyword. By Using SOQL we can know
in Which objects or fields the data resides

What is SOQL and SOSL?


A SOQL query is the equivalent of a SELECT SQL statement and searches the org
database. SOSL is a programmatic way of performing a text-based search against the
search index. Whether you use SOQL or SOSL depends on whether you know which
objects or fields you want to search, plus other considerations.

SOSL statements return a list of lists of sObjects, where each list contains the search results
for a particular sObject type. The SOSL statements result lists are always returned in the same
order as they were specified in the SOSL query.

What is the difference between custom setting and custom labels and custom object?
However, while both Custom Objects and Custom Settings allow you to
define Custom Fields, there are some important differences. Limited field types
– Custom Settings support only Checkbox, Currency, Date, Date/Time, Email,
Number, Percent, Phone, Text, Text Area, and URL field types

What is wrapper class in Salesforce?


Wrapper Class in Apex Salesforce : A wrapper or container class is a class, a data
structure, or an abstract data type which contains different objects or collection of
objects as its members. A wrapper class is a custom object defined by programmer
wherein he defines the wrapper class properties

What is difference between workflow and trigger?


What is difference between trigger and workflow? Workflow is automated process
that fired an action based on Evaluation criteria and rule criteria. We can access
a workflow across the object. Trigger is a piece of code that executes before or after a
record is inserted or updated.

What is wrapper class in Salesforce with example?


A wrapper class is nothing but a collection of different Salesforce data types. You can
combine multiple data types and utilize them for various purposes. For example, there
is a wrapper class that can access the account records and displays an in-page block
table
Can we call future method from batch apex?
While @Future cannot be called from a batch class, a webservice can. ... So have
your batch class call an apex webservice that in turn calls your @future method.
There is one trick here. To call your webservice from the batch class, you need a
session Id

Q: How can I know the number of fields in an object and how can I append entire fields at once? Please
guide.

Ans: For all the field of any object follow the steps :

1. Open Developer Console.


2. Press ctrl + o .
3. Go to object section and select desire object like "Account" click on "Open".
4. All the field of selected object is shown in table.
5. Select fields which you want and click on query button then the selected field shown in query editor.

You might also like