DeleteAttachments |
This soap method is used to delete all the attachments associated with the activity or a Case instance. The DeleteAttachments is a part of the BPM method set with the namespace 'http://schemas.cordys.com/bpm/attachments/1.0'.
SOAP Request
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <DeleteAttachment xmlns="http://schemas.cordys.com/bpm/attachments/1.0"> <instanceid type="CASE">00215A63-1B7C-11E2-EE37-9B4006A15B95</instanceid> <activityid>00215A63-1B7C-11E2-EE34-9930C139FB95</activityid> <attachmentname>AttachmentDefinition</attachmentname> <filename>BusinessCalendarscenario1</filename> <documenturl>/documentstore/casemanagement/SCJP/case2/00215A63-1B7C-11E2-EE37-6EA873B27B95/AttachmentDefinition/BusinessCalendarscenario1.txt</documenturl> </DeleteAttachment> </SOAP:Body> </SOAP:Envelope>
Request Parameters
Parameter |
Description |
Mandatory |
Accepted Input Values |
---|---|---|---|
instanceid |
Refers to the unique identifier of the Case instance that you want to delete |
Yes |
|
activityid | Refers to the unique identifier of the activity in the Case model.You can obtain it from SCXML of the model. | Yes | |
attachmentname |
Refers to the unique name of the attachment that you want to delete |
Yes |
|
filename | Refers to the attached file name to the activity | Yes | |
documenturl | Contains the complete document store URL | Yes |
SOAP Response
<data> <DeleteAttachmentResponse xmlns="http://schemas.cordys.com/bpm/attachments/1.0" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"/> </data>