Searches for cases within their associated Cases domain¶
Description¶
Searches for cases within their associated Cases domain. Search results are returned as a paginated list of abridged case documents.
For customer_id you must provide the full customer profile ARN in this format: arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID.
Usage¶
Arguments¶
-
domainId[required] The unique identifier of the Cases domain.
-
maxResultsThe maximum number of cases to return. When no value is provided, 25 is the default.
-
nextTokenThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
searchTermA word or phrase used to perform a quick search.
-
filterA list of filter objects.
-
sortsA list of sorts where each sort specifies a field and their sort order to be applied to the results.
-
fieldsThe list of field identifiers to be returned as part of the response.
Value¶
A list with the following syntax:
list(
nextToken = "string",
cases = list(
list(
caseId = "string",
templateId = "string",
fields = list(
list(
id = "string",
value = list(
stringValue = "string",
doubleValue = 123.0,
booleanValue = TRUE|FALSE,
emptyValue = list(),
userArnValue = "string"
)
)
),
tags = list(
"string"
)
)
),
totalCount = 123
)
Request syntax¶
svc$search_cases(
domainId = "string",
maxResults = 123,
nextToken = "string",
searchTerm = "string",
filter = list(
field = list(
equalTo = list(
id = "string",
value = list(
stringValue = "string",
doubleValue = 123.0,
booleanValue = TRUE|FALSE,
emptyValue = list(),
userArnValue = "string"
)
),
contains = list(
id = "string",
value = list(
stringValue = "string",
doubleValue = 123.0,
booleanValue = TRUE|FALSE,
emptyValue = list(),
userArnValue = "string"
)
),
greaterThan = list(
id = "string",
value = list(
stringValue = "string",
doubleValue = 123.0,
booleanValue = TRUE|FALSE,
emptyValue = list(),
userArnValue = "string"
)
),
greaterThanOrEqualTo = list(
id = "string",
value = list(
stringValue = "string",
doubleValue = 123.0,
booleanValue = TRUE|FALSE,
emptyValue = list(),
userArnValue = "string"
)
),
lessThan = list(
id = "string",
value = list(
stringValue = "string",
doubleValue = 123.0,
booleanValue = TRUE|FALSE,
emptyValue = list(),
userArnValue = "string"
)
),
lessThanOrEqualTo = list(
id = "string",
value = list(
stringValue = "string",
doubleValue = 123.0,
booleanValue = TRUE|FALSE,
emptyValue = list(),
userArnValue = "string"
)
)
),
not = list(),
tag = list(
equalTo = list(
key = "string",
value = "string"
)
),
andAll = list(
list()
),
orAll = list(
list()
)
),
sorts = list(
list(
fieldId = "string",
sortOrder = "Asc"|"Desc"
)
),
fields = list(
list(
id = "string"
)
)
)