Guest Guest Report post Posted 07/11/2005 03:01 PM Hi ! Is there any way for us to have access to outlook contact info from voice guide script, per example to validate a phone number Thanks Richard Share this post Link to post
SupportTeam Report post Posted 07/12/2005 11:10 AM This can be done from within a VBScript module. You should be able to find more info on this in programming sites, but here as a starter is a short script showing you how to retrieve info from Outlook: Public sub ListContacts() Dim oContact As ContactItem Dim oItems As Outlook.Items Dim sContact As String Dim sDelim As String Dim sFolderList As String Dim sFolders() As String Dim lListCount As Long Dim lContactCount As Long Dim i As Integer On Error GoTo ListContacts_Error lContactCount = 0 'restrict to just contacts (might also be DistList there) Set oItems = m_oFold.Items.Restrict("[MessageClass] = 'IPM.Contact'") lListCount = oItems.Count ' Automation code example. For i = 1 To lListCount lContactCount = lContactCount + 1 With oContact sContact = "Name: " & oItems(i).FullName _ & ", Email: " & oItems(i).Email1Address msgbox sContact End With Next Set oItems = Nothing Set oContact = Nothing ListContacts_Exit: Exit Function ListContacts_Error: msgbox err.description & " reading contacts." Resume ListContacts_Exit End Function Share this post Link to post