/ Forums / Advansys Formativ / Creating Solutions with Formativ / How can i get the creation Date of an attachment

  • Creator
    Topic
  • #4071
    Anonymous

    Is there an function to get the creation date of an attachment object.

    Thanks for help
    klaus.ernst@bwservices.de

  • Author
    Replies
  • #7007
    Support 1a
    Participant

    I don’t believe so. Attachments are accessed via the native GroupWise Object API Attachment Object. The attachment object doesn’t expose any methods that provide this information for file attachments.

    You could possible save out the physical file using the Save method and check the creation date of the resulting file, but I couldn’t tell you if the date returned would be the original creation date, or the date the newly saved out file was created.

    I hope this helps.

    Advansys Support

    #7008
    Support 1a
    Participant

    Further to my response above (based on the assumption you wish to obtain the creation date of a file attachment), if you want to access the creation date of a message attachment, you could do something like:

    dim oMsg
      dim oAttachment
     
      Set oMsg = client.clientstate.commandmessage
     
      for each oAttachment in oMsg.attachments
        if (oAttachment.objtype = fgwmessage) then
          msgbox oAttachment.message.subject & vbcrlf & oAttachment.message.creationdate
        end if
      next
     
      set oMsg = nothing
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.