• Creator
    Topic
  • #4286
    griesserag
    Participant

      Hello

      How can I delete an addressbook?

      I tried it like that, but it doesn’t work:

      Set adrBooks = GroupWise.AddressBooks

      For each AddressBook in adrBooks

      If AddressBook.Name = “MyBook” Then

      AddressBook.Delete()

      End if

      Next

      Thanks

    • Author
      Replies
    • #7721
      lp_irovetz
      Participant

        Hi,

        I remeber you could deleted only personnal Adressbook, not systems or shared

        Whith your code you browse all of them, include system, and it’s not possible to deleted it

        Hope this help

        L.P. Irovetz
        ARCANE GroupWare

        #7720
        Support 3
        Participant

          Thanks “lp_irovetz” for your suggestions.

          GroupWise.AddressBooks object represents the Formativ wrapping of the GroupWise address books. It is provided in order to make it simpler to access fields, especially in multi-lingual GroupWise clients. If you require access to the native GroupWise address books object model, access the GroupWise.Account.AddressBooks property.

            
          Set adrBooks = GroupWise.Account.AddressBooks
          
          For each oBook in adrBooks
            If ((oBook.Name = "MyBook") and (oBook.ObjType = fgwNovellPersonal)) Then
              oBook.Delete()
            End if
          Next
          

          Note: You may need to restart the GroupWise to refresh AddressBooks collection after you delete an address book.

          Hope this helps.

          Regards,
          Advansys Support

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