O
oferc
Hi,
I'm trying to use the AdvancedSearch on a shared contacts folder,
but fail.
here is a code snipper of what I'm doing:
Set myOlApp = CreateObject("Outlook.application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myRecipient = myNamespace.CreateRecipient("A, b") ' A, b is
sharing
Set myFolder = myOlApp.Session.GetSharedDefaultFolder(myRecipient,
olFolderContacts)
strFolderPath = myFolder.FolderPath
strScope = "SCOPE ('shallow traversal of " _
& Chr(34) & strFolderPath & Chr(34) & "')"
Set olsearch = myOlApp.AdvancedSearch(strScope,
"urn:schemas:contacts
LIKE 'xyz'") ' this function call is failing
Thanks in advance,
Ofer
Research & Technology Intiatives
SAP Labs Israel
I'm trying to use the AdvancedSearch on a shared contacts folder,
but fail.
here is a code snipper of what I'm doing:
Set myOlApp = CreateObject("Outlook.application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myRecipient = myNamespace.CreateRecipient("A, b") ' A, b is
sharing
Set myFolder = myOlApp.Session.GetSharedDefaultFolder(myRecipient,
olFolderContacts)
strFolderPath = myFolder.FolderPath
strScope = "SCOPE ('shallow traversal of " _
& Chr(34) & strFolderPath & Chr(34) & "')"
Set olsearch = myOlApp.AdvancedSearch(strScope,
"urn:schemas:contacts
Thanks in advance,
Ofer
Research & Technology Intiatives
SAP Labs Israel