Deleting a Test Attachment with the API
This code worked in QC 9.2, but is failing since our upgrade to QC 10. The error is "you don't have required permissions to execute this action" on the .Post line. Anyone know what's wrong?
<font class="small">Code:</font><hr /><pre> Set objTheFolder = tm.NodeByPath(ilsQCPathName)
Set foldAttachments = objTheFolder.Attachments
Set otaAttachmentFilter = foldAttachments.Filter
otaAttachmentFilter.Filter("CR_REFERENCE") = "'ALL_LISTS_" & objTheFolder.NodeID & "_" & shortFileName & "'"
Set otaAttachmentList = otaAttachmentFilter.NewList
If otaAttachmentList.Count > 0 Then
Set foldAttachment = foldAttachments.AddItem(Null)
foldAttachment.Type = 1
<font color="#6B6B6B">Scott Genevish