Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Business Contact Manager / April 2007

Tip: Looking for answers? Try searching our database.

Add new phone log problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sasqlacz - 26 Apr 2007 15:04 GMT
On incomming call i search bussines contact connected with phone number and I
display searched contact. Next I create new phone log connected with this
business contact save it and display to user. The problem is that phone log
form displays with most of field read only. Second issue is that form han an
icon like journal item but all form looks like phone log form BCM.
Interesting thing is that saved phone log is properly displayed in 'History'
tab on business contact form.

I use this code to create new phone log item.

private void AddPhoneLogEntryForBcmContact(MSOutlook.ContactItem contact)
       {
           MSOutlook.MAPIFolder bcmFolder =
this.Application.GetNamespace("MAPI").Folders["Business Contact Manager"];
           MSOutlook.MAPIFolder historyFolder =
bcmFolder.Folders["Communication history"];

           MSOutlook.JournalItem journalItem =
(MSOutlook.JournalItem)historyFolder.Items.Add("IPM.Activity.BCM.PhoneCall");
           journalItem.Type = "Phone Log";
           journalItem.Subject = "Incoming call";

           if (null == journalItem.UserProperties["Parent Entity EntryID"])
           {
               MSOutlook.UserProperty userProp =
journalItem.UserProperties.Add("Parent Entity EntryID",
MSOutlook.OlUserPropertyType.olText, false, false);
               userProp.Value = contact.EntryID;
           }
           journalItem.Save();
           journalItem.Display(false);
       }

I use VS2005 VSTO Add-in, Office 2007, BCM version 3.00.5828.
Any help would be apriciated.
sasqlacz - 28 Apr 2007 23:56 GMT
I've solved problem. In two points the code was wrong:

1. Type "IPM.Activity.BCM.PhoneCall" have to be replaced by
"IPM.Activity.BCM.PhoneLogCall". It looks like MSDN has a mistake in a topic
http://msdn2.microsoft.com/en-us/library/aa431973.aspx.

2. Extra user property initialization have to be done. I don't know english
name of the user propertie, because I found it out using OutlookSpy in
localized Outlook version. The name of the user propertie could be
'Identifier of parent position' or something like that.

> On incomming call i search bussines contact connected with phone number and I
> display searched contact. Next I create new phone log connected with this
[quoted text clipped - 31 lines]
> I use VS2005 VSTO Add-in, Office 2007, BCM version 3.00.5828.
> Any help would be apriciated.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.