Phone Log Object

The Phone Log object represents a phone log record associated with a new or existing Account, Business Contact, or Opportunity.

Version Information
Outlook 2007

Requirements

Business Contact Manager for Outlook

Remarks

To create a phone log programmatically, do the following:

  1. Instantiate an Outlook.JournalItem object, where the journal item is of type Phone Log.
  2. Assign properties to the phone log.
  3. Set the Parent Entity EntryID property of the journal item to the entry ID of a new or existing Account, Business Contact, or Opportunity.

You must link a Phone Log object with an Account, Business Contact, Opportunity, or Business Project. The Communication History folder contains phone log items.

Note  To link a phone log to multiple entities, you must instantiate multiple Phone Log objects.

Example

The following C# and Visual Basic for Applications (VBA) examples show how to create a new object instance of type Phone Log.

  [C#]
Outlook.JournalItem journalItem = (Outlook.JournalItem)historyFolder.Items.Add("IPM.Activity.BCM.PhoneCall");
            journalItem.Type = "Phone Log";
            journalItem.Subject = "Tele-Conference on 23-June-2005";

            if (journalItem.UserProperties["Parent Entity EntryID"] == null)
            {
                Outlook.UserProperty userProp = journalItem.UserProperties.Add("Parent Entity EntryID", Microsoft.Office.Interop.Outlook.OlUserPropertyType.olText, false, false);
                userProp.Value = accountEntryID;
            }

            journalItem.Save();

FakePre-f9d61f150dbe45e29e0bf4aec49178b4-90cc9a038a6c4cb39e55fbf2b55722e3

User Properties (Business Contact Manager only)

Call Type, Created By, Great Grand Parent Entity EntryID Property, Modified By, Parent Entity EntryID, Start Time

Parent Objects

JournalItem Object

For more information, download the Outlook 2007 Developer Reference by going to the 2007 Office System: Updated Developer Content Web site.

See Also

Appointments | Business Notes | E-Mail Messages | Files | Tasks