Skip to content

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

connectcases_search_cases(domainId, maxResults, nextToken, searchTerm,
  filter, sorts, fields)

Arguments

  • domainId

    [required] The unique identifier of the Cases domain.

  • maxResults

    The maximum number of cases to return. When no value is provided, 25 is the default.

  • nextToken

    The 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.

  • searchTerm

    A word or phrase used to perform a quick search.

  • filter

    A list of filter objects.

  • sorts

    A list of sorts where each sort specifies a field and their sort order to be applied to the results.

  • fields

    The 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"
    )
  )
)