• gracy layla
  • NEWBIE
  • 1 Points
  • Member since 2018
  • Developer


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
SOSL statement evaluate to a list of sobjects , where each list contains the search results for a particular sobject type, The result lists are always returned in the same order as they were specified in the query.
If a SOSL query does not return any records for a specified sObject type , the search results include an empty list for that sObject.
 for example, you can return a list of accounts, contacts, opportunities and leds that begin with the phase map.
 
List < list < subject >> search list = [ find 'map*' In ALL FIELDS RETURNING Account (ID, Name), contact, opportunity, lead ];

  Note : 
  The syntax of the classon Apex differs from the syntax of the FIND clause in the SOAP API.
  In Apex, the value of the FIND cause is demarcated with single quotes.
  Example:
FIND 'map*' IN ALL FIELDS RETURNING account (Id, Name], Contact, Opportunity, Lead.

In the Force.com API, the value of the FIND Clause is demarcated with braces.
For Example:
FIND {map*} IN ALL FIELDS RETURNING account  [Id,name], contact ,opportunity,lead.
From search list , you can create arrays for each object returned.
Account [ ]  accounts = (( list < accounts > ) search list [0] );
Contact [ ]  contacts = [( list ) search list [0]) ;
Opportunity [ ] opportunities = ((list < opportunity> ) search list [2]) ;
Lead [ ] leads = (( list < lead> ) search list [3]);
Can anyone suggest where can I get scenario based questions for interviews of different SFDC concepts ?

Hi,

 

If you have to take an interview of any salesforce position, what all question could you ask ?

 

Salesforce Developer - Skills -Apex , Force.com API , AppExchange, S-Control .

 

 

Please feel free to ask any questions ?

 

Thanks

Message Edited by ronir on 02-04-2009 11:51 AM
Message Edited by ronir on 02-04-2009 11:55 AM
  • February 04, 2009
  • Like
  • 0