You need to sign in to do that
Don't have an account?
naveen kunuru
an interview question
y u cant write a sosl in a trigger
how can u call a diff controller from script
how can u call a diff controller from script
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
1)
SOSL statements evaluate to a list of lists 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 SOSL query. SOSL queries are only supported in Apex classes and anonymous blocks.
2) Use javascript remoting.
Mark this question as solve and choose best answer if this answers your questions.
Regards,
Santosh
Please refer below link for more details
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008yZiIAI
Thanks,
Sandeep
The exact answer is, SOSL queries are only supported in Apex classes and anonymous blocks. You cannot use a SOSL query in a trigger.
You can say, Salesforce doesn't allow it so you can't use it. Here is the salesforce link for your reference, check under 'SOSL statement' section -
http://www.salesforce.com/us/developer/docs/dbcom_apex250/Content/langCon_apex_SOQL.htm
if this answers your question then mark this question as solved and choose the best answer.
Regards,
Santosh Chitalkar