/ Forums / Advansys Formativ / Creating Solutions with Formativ / Filter for Notes isn’t working as I expect. What should I do different?

  • Creator
    Topic
  • #5186
    dgerisch
    Participant

      I’ve made an applet to post Notes to people’s calendars on certain days; but realize that with ubiquitous virtual machines / remote desktops, there is a high likelihood of duplicate posting.

      How to not post the Note again, if it’s been posted once already?

      Seems to me a Filter would be the answer:

      dim iFilter
      dim oMessages

      iFilter = “(NOTE) AND (SUBJECT CONTAINS “”Put note subject line here””)”
      set oMessages = GroupWise.Account.Mailbox.Messages.Find(iFilter)
      msgbox oMessages.count

      This always returns zero. Yes, I’ve tried many variations on the subject line.

      This, on the other hand, returns the count of the number of Notes on my calendar today:

      iFilter = “(NOTE)”
      set oMessages = GroupWise.Account.Mailbox.Messages.Find(iFilter)
      msgbox oMessages.count

      So if I have six Notes on my calendar today, oMessages.count returns six.

      But what I need, is to be able to tell if the note “subject line here” has already been posted for the particular dates months in the future.

      Suggestions on how to make it work?

      GroupWise 2012, SP 3, HP 1, plus an FTF.

    • You must be logged in to reply to this topic.