/ Forums / Advansys Formativ / Creating Solutions with Formativ / Create an Appointment without “me”

  • Creator
    Topic
  • #4409
    embru
    Participant

      In GroupWise Client it is possible to create an appointment for a another person, without me as Recipient.

      Ho can i do this with Formativ. At this Moment i do following:

      set nMsg = GroupWise.Account.Mailbox.messages.add(“GW.MESSAGE.APPOINTMENT”, fgwDraft)
      nRecipient = nMsg.Recipients.Add(Arbeitszeit.fErsteller.Text,,0)
      nMsg.OnCalendar = TRUE
      nMsg.Priority = fgwNormal

      But when I send this message, the sender is allways in the recipient list.

    • Author
      Replies
    • #8116
      Support 3
      Participant

        Could you please elaborate your question.

        Do you want to send an appointment to another recipient? Your sample code above only create the appointment message but do not sent it. See the sample code below which send the appointment.

          
          set nMsg = GroupWise.Account.workfolder.messages.add("GW.MESSAGE.APPOINTMENT", fgwDraft)
          nRecipient = nMsg.Recipients.Add("recipient@email.com",,0)
          nMsg.OnCalendar = TRUE
          nMsg.StartDate = DateAdd("d", 1, date)
          nMsg.subject = "Test Appointment"
          nMsg.Place = "IT"
          nMsg.Priority = fgwNormal
          nMsg.send
        

        Regards,
        Advansys Support

        #8115
        embru
        Participant

          The send command follows below

          i want to send an appointment but i don’t wont participate this appointment. From my workflow, I have to create an appointment in an other user’s mailbox.

          #8114
          Support 3
          Participant

            In order to create appointments to another user account, you will need to either login or proxy to the account.

            If you have proxy rights to the account then you can use the following code to proxy prior to create appointment. See the Novell Object API documentation for more information.

              
            set oProxyAccount = GroupWise.account.Proxy(proxyUserID)
            

            Regards,
            Advansys Support

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