Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

add SOSL to apex Example

List<List<sObject>> searchList = [FIND 'Wingo OR SFDC' IN ALL FIELDS 
                   RETURNING Account(Name),Contact(FirstName,LastName,Department)];
Account[] searchAccounts = (Account[])searchList[0];
Contact[] searchContacts = (Contact[])searchList[1];
System.debug('Found the following accounts.');
for (Account a : searchAccounts) {
    System.debug(a.Name);
}
System.debug('Found the following contacts.');
for (Contact c : searchContacts) {
    System.debug(c.LastName + ', ' + c.FirstName);
}
Comment

PREVIOUS NEXT
Code Example
Java :: sort stream by key java 
Java :: how many public classes can be allowed in java 
Java :: focus_button_java_swing 
Java :: jdk full form 
Java :: Java lAccess TreeMap Elements 
Java :: what is serialization in rest assured 
Java :: get selected text in java 
Java :: editable column 
Java :: how to add a command to a button 
Java :: create object in java without new keyword 
Java :: java new.JFrame(); 
Java :: javax.ws.rs.core.response readentity not found 
Java :: java india 
Java :: java list to collections 
Java :: how to divide coloumns in a text file into seperate arrays in java 
Java :: Java Access Members of a Class 
Java ::         System.out.println("Welcome to GeeksforGeeks"); 
Java :: Which type of Exception will be thrown by forName() method 
Java :: what is the import for gogga class java 
Java :: Java headSet(element, booleanValue) 
Java :: Buscando Objeto do Array 
Java :: Log exception details to string 
Java :: 2 multiples recursion 
Java :: java how to make a recrussive boolean function 
Java :: session-less control using java 
Java :: spring mvc aop transaction management 
Java :: get subarray of String java Streams 
Java :: java throw exception without method signature 
Java :: what is void in java 
Java :: Dhttps.protocols=TLSv1.2 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =