How to tokenize the new 'Search Box'

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I love the new Search Box. It was an instant value add for my instance. I have two questions about it:

First, can I tokenize the search results?
Second, can I do a 'if no results, create new' option?



Thanks brains.
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
  • happy

Posted 3 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
1. The Search Box uses SOSL Search, so I would consult the SOSL Search syntax documentation for what you're allowed to use within your searches: https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_sosl_fin...

2. Not currently. We've been thinking about adding this in a future release but there's no way to do this right now.
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
Thanks Zach. 

For anyone who has this question down the road, you can get the tokenized search by using a wildcard (*)


Search: Guys who are fun*

Results:
  • Guys who are fun
  • Guys who are funny
  • Guys who think they are funny
  • Guys who are funky