/ Forums / Advansys Formativ / Creating Solutions with Formativ / BUG: Retreiving the Subject of CurrentItem / Reply To: BUG: Retreiving the Subject of CurrentItem

#8014
Support 3
Participant

    If the draft message view is open then you can delete the attachments using the code below. I haven’t tried with other scenario (message view not open, delete attachments using Object API, etc)

      
      iTotalAttachments = GroupWise.ItemAttachmentGetCount("X00")
    
      if iTotalAttachments > 0 then
        for sndIntCounter = iTotalAttachments-1 to 1 step -1
           msgbox groupwise.throwtoken("ItemAttachmentDelete(""X00"";" & sndIntCounter & ")", iReturnVal)
         next
      end if
    

    Regards,
    Advansys Support