Skip to content

Searches for related items that are associated with a case

Description

Searches for related items that are associated with a case.

If no filters are provided, this returns all related items associated with a case.

Usage

connectcases_search_related_items(domainId, caseId, maxResults,
  nextToken, filters)

Arguments

  • domainId

    [required] The unique identifier of the Cases domain.

  • caseId

    [required] A unique identifier of the case.

  • maxResults

    The maximum number of results to return per page.

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

  • filters

    The list of types of related items and their parameters to use for filtering.

Value

A list with the following syntax:

list(
  nextToken = "string",
  relatedItems = list(
    list(
      relatedItemId = "string",
      type = "Contact"|"Comment"|"File"|"Sla"|"ConnectCase"|"Custom",
      associationTime = as.POSIXct(
        "2015-01-01"
      ),
      content = list(
        contact = list(
          contactArn = "string",
          channel = "string",
          connectedToSystemTime = as.POSIXct(
            "2015-01-01"
          )
        ),
        comment = list(
          body = "string",
          contentType = "Text/Plain"
        ),
        file = list(
          fileArn = "string"
        ),
        sla = list(
          slaConfiguration = list(
            name = "string",
            type = "CaseField",
            status = "Active"|"Overdue"|"Met"|"NotMet",
            fieldId = "string",
            targetFieldValues = list(
              list(
                stringValue = "string",
                doubleValue = 123.0,
                booleanValue = TRUE|FALSE,
                emptyValue = list(),
                userArnValue = "string"
              )
            ),
            targetTime = as.POSIXct(
              "2015-01-01"
            ),
            completionTime = as.POSIXct(
              "2015-01-01"
            )
          )
        ),
        connectCase = list(
          caseId = "string"
        ),
        custom = list(
          fields = list(
            list(
              id = "string",
              value = list(
                stringValue = "string",
                doubleValue = 123.0,
                booleanValue = TRUE|FALSE,
                emptyValue = list(),
                userArnValue = "string"
              )
            )
          )
        )
      ),
      tags = list(
        "string"
      ),
      performedBy = list(
        userArn = "string",
        customEntity = "string"
      )
    )
  )
)

Request syntax

svc$search_related_items(
  domainId = "string",
  caseId = "string",
  maxResults = 123,
  nextToken = "string",
  filters = list(
    list(
      contact = list(
        channel = list(
          "string"
        ),
        contactArn = "string"
      ),
      comment = list(),
      file = list(
        fileArn = "string"
      ),
      sla = list(
        name = "string",
        status = "Active"|"Overdue"|"Met"|"NotMet"
      ),
      connectCase = list(
        caseId = "string"
      ),
      custom = list(
        fields = 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(),
          andAll = list(
            list()
          ),
          orAll = list(
            list()
          )
        )
      )
    )
  )
)