function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JoanJoan 

Add condition in search

Hi
If I can the search useing coding like:

binding.search("find {test}in ALL FIELDS returning solution(SolutionName, SolutionNote, IsPublished, Related_To__c, Publish_to_public__c)")

How can I add condition here, like IsPublished=True

What I want to do is I want to search word 'test' where IsPublished=True

Any help?

Thanks

benjasikbenjasik
search doesn't support this yet.  That being said, you could pass this result into a soql query and add the filter.  In the Winter release you can use the IN statement, in the current release, you can say where id = ... or id = ... etc
JoanJoan
Thanks,