We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.
Essential cookies are necessary to provide our site and services and cannot be deactivated. They are usually set in response to your actions on the site, such as setting your privacy preferences, signing in, or filling in forms.
Performance cookies provide anonymous statistics about how customers navigate our site so we can improve site experience and performance. Approved third parties may perform analytics on our behalf, but they cannot use the data for their own purposes.
Functional cookies help us provide useful site features, remember your preferences, and display relevant content. Approved third parties may set these cookies to provide certain site features. If you do not allow these cookies, then some or all of these services may not function properly.
Advertising cookies may be set through our site by us or our advertising partners and help us deliver relevant marketing content. If you do not allow these cookies, you will experience less relevant advertising.
Blocking some types of cookies may impact your experience of our sites. You may review and change your choices at any time by clicking Cookie preferences in the footer of this site. We and selected third-parties use cookies or similar technologies as specified in the AWS Cookie Notice.
search_related_items
(**kwargs)¶Searches for related items that are associated with a case.
Note
If no filters are provided, this returns all related items associated with a case.
See also: AWS API Documentation
Request Syntax
response = client.search_related_items(
caseId='string',
domainId='string',
filters=[
{
'comment': {}
,
'contact': {
'channel': [
'string',
],
'contactArn': 'string'
}
},
],
maxResults=123,
nextToken='string'
)
[REQUIRED]
A unique identifier of the case.
[REQUIRED]
The unique identifier of the Cases domain.
The list of types of related items and their parameters to use for filtering.
The list of types of related items and their parameters to use for filtering.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: comment
, contact
.
A filter for related items of type Comment
.
A filter for related items of type Contact
.
A list of channels to filter on for related items of type Contact
.
A unique identifier of a contact in Amazon Connect.
dict
Response Syntax
{
'nextToken': 'string',
'relatedItems': [
{
'associationTime': datetime(2015, 1, 1),
'content': {
'comment': {
'body': 'string',
'contentType': 'Text/Plain'
},
'contact': {
'channel': 'string',
'connectedToSystemTime': datetime(2015, 1, 1),
'contactArn': 'string'
}
},
'relatedItemId': 'string',
'tags': {
'string': 'string'
},
'type': 'Contact'|'Comment'
},
]
}
Response Structure
(dict) --
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
relatedItems (list) --
A list of items related to a case.
(dict) --
A list of items that represent RelatedItems.
associationTime (datetime) --
Time at which a related item was associated with a case.
content (dict) --
Represents the content of a particular type of related item.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: comment
, contact
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
comment (dict) --
Represents the content of a comment to be returned to agents.
body (string) --
Text in the body of a Comment
on a case.
contentType (string) --
Type of the text in the box of a Comment
on a case.
contact (dict) --
Represents the content of a contact to be returned to agents.
channel (string) --
A list of channels to filter on for related items of type Contact
.
connectedToSystemTime (datetime) --
The difference between the InitiationTimestamp
and the DisconnectTimestamp
of the contact.
contactArn (string) --
A unique identifier of a contact in Amazon Connect.
relatedItemId (string) --
Unique identifier of a related item.
tags (dict) --
A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.
type (string) --
Type of a related item.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException