![]() |
Popping up Outlook contact via API
Is there a method of calling up a contact record in Outlook if a
unique ID of the contact is known through some API? Is there some DDE method in particular? |
Popping up Outlook contact via API
You'd use the Namespace.GetItemFromID method from the Outlook object model.
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "voipfc" wrote in message ups.com... Is there a method of calling up a contact record in Outlook if a unique ID of the contact is known through some API? Is there some DDE method in particular? |
Popping up Outlook contact via API
On Oct 1, 9:20 pm, "Sue Mosher [MVP-Outlook]"
wrote: You'd use the Namespace.GetItemFromID method from the Outlook object model. Is the ID included in the list of items exported whether it is via ODBC or exported to Microsoft Access? Does this method automatically popup the item? The Outlook contact database in question is in an Exchange public folder - will that make a difference? -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "voipfc" wrote in oglegroups.com... Is there a method of calling up a contact record in Outlook if a unique ID of the contact is known through some API? Is there some DDE method in particular? |
Popping up Outlook contact via API
You'd use the Namespace.GetItemFromID method from the Outlook object model.
Is the ID included in the list of items exported whether it is via ODBC or exported to Microsoft Access? Not unless you write your own export code to include it. Does this method automatically popup the item? No, it returns the item for processing by your code. If you want to display the item, you'd call the Display method. The Outlook contact database in question is in an Exchange public folder - will that make a difference? Yes, you should include the StoreID value for the public folder store as the second parameter for GetItemFromID. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "voipfc" wrote in oglegroups.com... Is there a method of calling up a contact record in Outlook if a unique ID of the contact is known through some API? Is there some DDE method in particular? |
Popping up Outlook contact via API
On Oct 5, 10:48 pm, "Sue Mosher [MVP-Outlook]"
wrote: You'd use the Namespace.GetItemFromID method from the Outlook object model. Is the ID included in the list of items exported whether it is via ODBC or exported to Microsoft Access? Not unless you write your own export code to include it. Does this method automatically popup the item? No, it returns the item for processing by your code. If you want to display the item, you'd call the Display method. The Outlook contact database in question is in an Exchange public folder - will that make a difference? Yes, you should include the StoreID value for the public folder store as the second parameter for GetItemFromID. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "voipfc" wrote in oglegroups.com... Is there a method of calling up a contact record in Outlook if a unique ID of the contact is known through some API? Is there some DDE method in particular? If I add user defined fields to the contact daatabase will the new fields be readable as a property from the contacts object |
Popping up Outlook contact via API
If you add a field to an Outlook folder and set a value for an item, that value can be read through the the ContactItem.UserProperties collection. See http://www.outlookcode.com/article.aspx?ID=38
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "vfclists" wrote in message ups.com... If I add user defined fields to the contact daatabase will the new fields be readable as a property from the contacts object |
All times are GMT +1. The time now is 03:55 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com