/ Forums / Advansys Formativ / Creating Solutions with Formativ / Change (Append to) Subject Line

  • Creator
    Topic
  • #4171
    mjgustas
    Participant

      I’m looking for a way to change the subject line of a message. When ‘recording’ an applet (as I thought this would be pretty simple) it doesn’t seem to be able to change the focus from body to subject line.

      What we are looking for is a method to append to the subject line something like “Secure” when an applet is kicked off. (Kick off could be from a user initiation of the applet run, or possible have it run at send and looking for certain properties of the message – for example, a word in the body, or it using an external e-mail address.)

      I would appreciate some information on how to accomplish this.

    • Author
      Replies
    • #7357
      Support 1a
      Participant

        The following code may help. (When recording, you need to use TAB to navigate between fields in order for the recorder to see your actions).

        Sub Main(Client, GWEvent)
        
           call GroupWise.FocusSet(9, "")
           call GroupWise.ItemSetText("X00", itfSubject, " :Secure", true)
        
        End Sub

        The key here is the ItemSetText command (you’ll find it documented in the users guide). It appends the text ‘ :Secure’ to the end of the subject of the current message (denoted by the message ID ‘X00’).

        I hope this helps.

        Advansys Support

        #7359
        mjgustas
        Participant

          That did the trick. Thanks.

          #7358
          Support 1a
          Participant

            You are welcome.

            Advansys Support

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