/ Forums / Advansys Formativ / Creating Solutions with Formativ / Retrieve Message-Object through MsgID

  • Creator
    Topic
  • #4243
    griesserag
    Participant

      Hello

      How can I retrieve a Message-Object through a MessageID?

      An easy way would be to use the FindMessages-function, but I didn’t find any keyword for the MessageID in the filter expressions.

      What else could I do?

      Thanks.

      Regards.

    • Author
      Replies
    • #7583
      Support 1
      Participant

        If you have a message ID, then you can use the technique used in the following sample code:

          dim iMsgID
          dim oMsg
        
          iMsgID = GetNextID
          set oMsg = GroupWise.Account.GetMessage(iMsgID)
        
          ' Use oMsg...

        See the GroupWise online documentation for details of the Account object.

        I hope this helps.

        Regards,
        Advansys Support

        #7581
        griesserag
        Participant

          But how does this work with a recurring appointment? I don’t think that I have access to all the i.e. startdates or stopdates of all appointments in a recurring appointment. I think for this kind I need the FindMessages feature (but as I already said, I didn’t find any filter expressions for the messageID), do I?

          #7580
          griesserag
          Participant

            Or how Can I find out which messageID’s the messages have which belong to a recurring appointment?

            #7584
            griesserag
            Participant

              Ok. I found it out. The message-object contains a messagelist-property (AutodateMessages).

              Thanks anyway.

              #7582
              Support 1
              Participant

                Thanks for posting your discovery. It’s good to hear you have had some success with the online documentation.

                Regards,
                Advansys Support

              Viewing 5 replies - 1 through 5 (of 5 total)
              • You must be logged in to reply to this topic.