Show TOC

Upload Attachments to a Work ItemLocate this document in the navigation structure

To upload attachments to a Workflow work item, you must execute a POST request on the Attachments Collection.

The POST body must contain the following atom entry:

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"> <atom:id></atom:id> <atom:summary>Summary</atom:summary> <atom:title>Title</atom:title> <atom:updated>2010-08-09T14:35:45Z</atom:updated> <atom:author> <atom:name></atom:name> </atom:author> <atom:content type="application/xml"> <m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"> <d:filename>testfile_excel</d:filename> <d:extension>doc</d:extension> <d:content>ZGZzZnNkZnNmc2Rmc2Y=</d:content> </m:properties> </atom:content> </atom:entry> 
  • All the fields (filename, file_ext, content) are mandatory.

  • The content must be encoded using Base64.

The URLs are as follows:

  • For Generic Workflow Task processing services:

    http://<host name>:<port>/sap/opu/sdata/sap/wfgentaskprocessing/WorkflowTaskCollection(value='<item_id>',scheme_id='IW_WF_TASK_GW',scheme_agency_id='<SID>_<client>')/Attachments

  • For User Decision Workflow Task processing services:

    http://<host name>:<port>/sap/opu/sdata/sap/wfdecisiontaskprocessing/WorkflowTaskCollection(value='<item_id>',scheme_id='IWF_USER_DECISION_TASK_GW',scheme_agency_id='<SID>_<client>')/Attachments

  • For Dialog Activity Workflow Task processing services:

    http://<host name>:<port>/sap/opu/sdata/sap/wfactivitytaskprocessing/WorkflowTaskCollection(value='<item_id>',scheme_id='IW_ACTIVITY_TASK_GW',scheme_agency_id='<SID>_<client>')/Attachments