![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I am using the redemption object to connect to the GAL and read each item with its attributes like Name,Department,telephone etc. Below is the script I tried - objAddressEntry.Fields seems to be failing (does not find the collection) - Any particular reason ? Where as objAddressEntry.Name seems to work fine and returns the name of the group or contact from the GAL. Also how can I update the GAL ? (as a next step) Const CdoPR_GIVEN_NAME = &H3A06001F Const CdoPR_TITLE = &H3A17001E set Session = CreateObject("Redemption.RDOSession") Session.Logon set AddrList = Session.AddressBook.AddressLists.Item("Global Address List") MsgBox "There are " & AddrList.AddressEntries.Count & " items in the GAL" Set objAddressEntries = AddrList.AddressEntries int i=0 For Each objAddressEntry In objAddressEntries on error resume next Set objAddressFields = objAddressEntry.Fields MsgBox objAddressEntry.Name If Not objAddressFields is Nothing Then MsgBox objAddressFields.Item(CdoPR_GIVEN_NAME).Value MsgBox objAddressFields.Item(CdoPR_TITLE).Value End If Next Regards, Safal |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I migrate contacts data and email data to a new laptop ?? | Ardvark | Outlook - Installation | 1 | August 17th 07 03:31 PM |
Updation of Reply/Forward icons on emails | DK | Outlook - General Queries | 0 | February 28th 07 01:44 AM |
Outlook Offline Data Completely Different To Data When Connected | Mike M | Outlook - Installation | 0 | January 22nd 07 04:15 PM |
How to copy data from Voting Button to MS Access Data | NIMISH | Outlook - General Queries | 1 | July 27th 06 12:12 AM |
merge the data in one PC with the data from another PC | Mark | Outlook Express | 1 | May 30th 06 06:52 PM |