Search functionality is one of the very basic requirement for any Application. In this respect you can follow two major approaches SOQL and SOSL.
Salesforce Object Search Language (SOSL)
SOSL is use for searching the text string accross the object. This is Salesforce Object Search Language. On the multiple object SOSL has the capbility of searching a particular string.
With the help of SOSL, you can evaluate to a list of sObject, where each list contains the search results for a particular sObject type. The result of sObject query is same order as SOSL query statement. SOSL follow the same pattern of a SELECT SQL statement and searches the org database.
Salesforce Object Query Language (SOQL)
The formate of text query of both SOQL and SOSL are same. For the SOQL you can fetch the object records from one object only
The SOQL query wrap with your query statement within the square brackets and assign the return value to an array of sObjects.
Salesforce developers love to write code. And just because we can sometimes write code for things that could have easily been solved without coding.
In Salesforce early days, Force.com started out as a declarative development platform. Declarative customizations can be made point and click in a browser and Programmatic customizations are made with code.
While using Declarative tools, you require an understanding of Force.com concepts, but no coding knowledge. On the other hand, Programmatic customizations require coding skills
Copyright © 2017 - All Rights Reserved - Astrea IT Services