/ Forums / Advansys Formativ / Creating Solutions with Formativ / Does Formativ have a way to export address books?

  • Creator
    Topic
  • #10423
    dgerisch
    Participant

      I’m looking for a way to automate the process of opening the Address Book application, picking the non- system address books, and choosing File –> Export –> Entire book (and then deal with the File Save As dialog box).

      I do want to save the address books in the .NAB file format. I’m just making a backup, per person, prior to doing some maintenance. Also, it would be nice to have, that my users could have a one-click address book backup option.

      Essentially, what I would like is:


      Sub Main(Client, GWEvent)

      Dim objAddressBooks
      Dim objAddressBook

      Set objAddressBooks = GroupWise.AddressBooks
      For Each objAddressBook In objAddressBooks
      objAddressBook.FileExportAs(“some_path_and_file_name_i_generate_from_the_address_book_name”)
      Next
      Set objAddressBooks = Nothing

      End Sub

      Can something like this be done with Formativ?

      Thanks!

    • Author
      Replies
    • #10425
      Support 2
      Moderator

        Hi and thanks for your message. Yes, it should be possible, although we don’t have a pre-written Formativ solution which matches your exact requirements. There is an example written many years ago and the general approach should still be valid. The source code will be sent to you via direct email and hopefully it will be of some assistance.

        Kind Regards,

        Advansys Support

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