This collection relates to the Workflow task collection. It contains all the attachments from the SAP system that are related to the Workflow item.
This collection contains only the attachment header data. To obtain the attachment content, you must navigate to the appropriate media link. For more information, see the Media Links section.
The Attachment entity contains the following properties:
Object Structure
Property Name |
Description |
---|---|
WORKITEM_ID |
Workflow item instance ID. |
ID |
Attachment ID in UTF8. |
CREATOR_ID |
ID of the user who created the attachment. |
CREATOR_NAME |
Name of the user who created the attachment. |
CREATED_AT |
Attachment creation date. |
FILENAME |
Attachment file name. |
EXTENSION |
Attachment file extension (for example, DOC or PDF). |
Supported Operations
GET – To retrieve the list of attachments that are related to the Workflow item in the SAP system, perform a GET operation on the relevant URL.
To obtain the URL:
On the SAP Gateway system, go to transaction SPRO, open the SAP Reference IMG and navigate to
.Select the Workflow service.
Choose Call Browser.
Navigate to WorkflowTaskCollection(<workitem_id>)/Attachments.
POST – Creates (uploads) new attachments for specific Workflow items. For more information refer to the Uploading Attachments to a Work Item section.
DELETE – Deletes existing attachments from Workflow items by executing an http DELETE operation on the relevant URL. For more information refer to the Deleting Attachments from a Work Item section.