search_all_related_items
async
¶
search_all_related_items(
domain_id: DomainId,
*,
config_overrides: Optional[AsyncConnectCasesClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
filters: Optional[RelatedItemFilterList] = None,
sorts: Optional[SearchAllRelatedItemsSortList] = None,
) -> SearchAllRelatedItemsResponse
Searches for related items across all cases within a domain. This is a global search operation that returns related items from multiple cases, unlike the case-specific SearchRelatedItems API.
Use cases
Following are common uses cases for this API:
-
Find cases with similar issues across the domain. For example, search for all cases containing comments about "product defect" to identify patterns and existing solutions.
-
Locate all cases associated with specific contacts or orders. For example, find all cases linked to a contactArn to understand the complete customer journey.
-
Monitor SLA compliance across cases. For example, search for all cases with "Active" SLA status to prioritize remediation efforts.
Important things to know
-
This API returns case identifiers, not complete case objects. To retrieve full case details, you must make additional calls to the GetCase API for each returned case ID.
-
This API searches across related items content, not case fields. Use the SearchCases API to search within case field values.
Endpoints: See Amazon Connect endpoints and quotas.
Parameters:
-
domain_id(DomainId) –The unique identifier of the Cases domain.
-
max_results(Optional[int], default:None) –The maximum number of results to return per page.
-
next_token(Optional[NextToken], default:None) –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(Optional[RelatedItemFilterList], default:None) –The list of types of related items and their parameters to use for filtering. The filters work as an OR condition: caller gets back related items that match any of the specified filter types.
-
sorts(Optional[SearchAllRelatedItemsSortList], default:None) –A structured set of sort terms to specify the order in which related items should be returned. Supports sorting by association time or case ID. The sorts work in the order specified: first sort term takes precedence over subsequent terms.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–We couldn't process your request because of an issue with the server. Try again later.
-
ResourceNotFoundException–We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.
-
ThrottlingException–The rate has been exceeded for this API. Please try again after a few minutes.
-
ValidationException–The request isn't valid. Check the syntax and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connectcases/_services/async_connect_cases.py
2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 | |