Skip to content

/AWS1/CL_CNK=>CREATERELATEDITEM()

About CreateRelatedItem

Creates a related item (comments, tasks, and contacts) and associates it with a case.

  • A Related Item is a resource that is associated with a case. It may or may not have an external identifier linking it to an external resource (for example, a contactArn). All Related Items have their own internal identifier, the relatedItemArn. Examples of related items include comments and contacts.

  • If you provide a value for performedBy.userArn you must also have DescribeUser permission on the ARN of the user that you provide.

Method Signature

IMPORTING

Required arguments:

IV_DOMAINID TYPE /AWS1/CNKDOMAINID /AWS1/CNKDOMAINID

The unique identifier of the Cases domain.

IV_CASEID TYPE /AWS1/CNKCASEID /AWS1/CNKCASEID

A unique identifier of the case.

IV_TYPE TYPE /AWS1/CNKRELATEDITEMTYPE /AWS1/CNKRELATEDITEMTYPE

The type of a related item.

IO_CONTENT TYPE REF TO /AWS1/CL_CNKRELATEDITEMINPCONT /AWS1/CL_CNKRELATEDITEMINPCONT

The content of a related item to be created.

Optional arguments:

IO_PERFORMEDBY TYPE REF TO /AWS1/CL_CNKUSERUNION /AWS1/CL_CNKUSERUNION

Represents the creator of the related item.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CNKCRERELATEDITEMRSP /AWS1/CL_CNKCRERELATEDITEMRSP