This collection relates to the Workflow task collection containing the approver comments.
When performing an action (for example, forwarding or claiming a task), the user has the option to add comments to the work item. These comments are saved in the SAP system as attachments and can be pulled during runtime as part of the collection’s results.
The Comments entity contains the following properties:
Property Name |
Description |
---|---|
WORKITEM_ID |
Workflow item instance ID. |
ID |
Comment ID encoded in UTF8. |
CREATOR_ID |
ID of the user who created the comment. |
CREATOR_NAME |
Name of the user who created the comment. |
CREATED_AT |
Comment creation date. |
TEXT |
Comment content (in string format). |
GET – To retrieve the Comments collection, 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>)/Comments.