Hi,
I am using the below code to remove attachment from workflow.(4d01edf680027d01 is the workflow Id)
IDfWorkflow workflow=(IDfWorkflow)session.getObject(new DfId("4d01edf680027d01"));
IDfCollection oAttachmentCollection = workflow.getAttachments();
while (oAttachmentCollection.next()) {
System.out.println("Attachment" + oAttachmentCollection.getString("r_component_id"));
IDfId wfID = new DfId(oAttachmentCollection.getString("r_component_id"));
workflow.removeAttachment(wfID);
it throws error "[DM_WORKFLOW_E_CANT_FETCH]error: "The dmi_wf_attachment object doesnot exists.
Any suggestions
Thanks Aninda