Salesforce SOQL Query
Salesforce SOQL Query
SOQL Query
Cheat Sheet
Salesforce SOQL Query
2)Query on Profile Object to get the Profile Id and Name With Where
condition to check id contain the Id which we are passing into the profile
Id variable.
4)Query to get all the Opportunity which contain the amount greater
than 10000
5)Query on Record Type to get the Record Type which contain the
developer name as Service
SELECT Id, Name ,SobjectType , DeveloperName FROM RecordType
WHERE DeveloperName = 'Service'
6) Query to get the Faderation Identifier from the User Object and in the
where condition we are passing the Id is equal to the reference of User Id
8)Query to get the 5 Record of an Product2 Object to get only five record
we can use LIMIT
10)Query to get Child object Contact from the Parent Object Account
14) Query to get the First name , Last Name and Phone From the Lead In
Which the lead Id is in the LeadIDS reference List
17) This query retrieves the ID, First Name, and Last Name of
Contacts associated with the Account named 'Acme Corporation'.
18) This query retrieves the ID, Name, and Stage Name of
Opportunities with a Close Date within the next 30 days
23) This query retrieves the ID, Name, and Close Date of
Opportunities with a Close Date within the current fiscal year