Questions tagged [apex-sosl]

5 questions
0
votes
0 answers

Precedence Logic using apex

I hope you all are doing well. I am beginner to salesforce and I am working on one of the requirement. Below are the details: I am using SOSL to retrieve accounts based on some condition and need to show an account based on precedence on Status…
Amit
  • 71
  • 3
  • 15
0
votes
1 answer

how to use four different AND condition in single soql query?

I have two soql on same object but where condition is vary by single condition mentioned below, I need to combine both and make it as single soql, can someone help me how to do with below soql after where conditions? 1st one have…
roshni T
  • 3
  • 2
0
votes
1 answer

Query Accounts based on Search String

I have a requirement where I have a search box on the vf page. Based on the search string I am returning accounts to the page. I have written a query which searches for account name based on the search string. But I want to compare the search string…
0
votes
1 answer

Salesforce: SOSL with CONTAINS

On salesforce i saw apps which are able to run CONTAINS queries. Even the basic list filter functionality on object list allows the CONTAINS filtering. Using SOSL i tried the following: List> searchList = [FIND '*ben* AND *berlin*' IN…
NovumCoder
  • 4,349
  • 9
  • 43
  • 58
-1
votes
1 answer

How to create a picklist field value using trigger when new record is added?

Apex code to create a record picklist in an object when a new member is created in another object?