parameterized_search_control {salesforcer} | R Documentation |
Auxiliary for Controlling Parametrized Searches
Description
A function for allowing finer grained control over how a search is performed when not using SOSL
Usage
parameterized_search_control(
objects = NULL,
fields_scope = c("ALL", "NAME", "EMAIL", "PHONE", "SIDEBAR"),
fields = NULL,
overall_limit = 2000,
default_limit = 200,
spell_correction = TRUE
)
Arguments
objects |
|
fields_scope |
|
fields |
|
overall_limit |
|
default_limit |
|
spell_correction |
|
Value
list
of parameters passed onto sf_search
References
Examples
## Not run:
# free text search only on Contact record Phone fields
# this will improve the performance of the search
my_phone_search <- "(336)"
search_result <- sf_search(my_phone_search,
objects = c("Contact", "Lead"),
fields_scope = "PHONE",
fields = c("Id", "FirstName", "LastName"))
## End(Not run)