/ Forums / Advansys Formativ / Creating Solutions with Formativ / Personal Address Book Group Entry Question

  • Creator
    Topic
  • #4246
    rdryan
    Participant

    Can you tell me how I can access group members from a personal address book? So far, I’m only getting to personal address book contacts.

    Thank you,
    rdryan

  • Author
    Replies
  • #7592
    Support 3
    Participant

    Members properties of an address book entry will give you access to the group members. You need to make sure the objtype is group prior to access the members. See the Object API for more information about the properties and methods.

    We also have a free solution Export Address Book Group Members to CSV in GroupWise Cool Solutions.

    Here is a sample code:

    dim x
    dim oBook
    dim iCounter
    dim oABEntry
    
    set oBook = groupwise.account.addressbooks.item("System")
    set oABEntry = oBook.addressbookentries.item(1)
    
    if (oABEntry.ObjType = fgwGroup) then
      iCounter = oABEntry.members.count
      for x = 1 to iCounter
        set oMember = oABEntry.members.item(x)
        msgbox oMember.displayname
      next
    end if
    
    set oABEntry = nothing
    set oBook = nothing
    

    Hope this helps.

    Regards,
    Advansys Support

    #7591
    rdryan
    Participant

    Your information was exactly what I needed to know. Thanks for your quick response and the helpful sample code. You continue to help make Formativ a big success for us.

    sincerely,
    rdryan

    #7593
    Support 2
    Moderator

    Thank you very much for the feedback and good news, which is always appreciated by the Advansys team.

    Regards,

    Advansys Support

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