MapiJournalBuilder Class
A journal entry (IPM.Activity, [MS-OXOJRNL]) to add to a folder of a PstWriter or to save as an .msg file.
public sealed class MapiJournalBuilder : MapiMessageBuilderExample
var entry = new MapiJournalBuilder
{
Subject = "Call with Bob",
JournalType = "Phone call",
JournalTypeDescription = "Phone call",
Start = new DateTime(2026, 3, 2, 9, 0, 0, DateTimeKind.Utc),
End = new DateTime(2026, 3, 2, 9, 25, 0, DateTimeKind.Utc),
Companies = ["Contoso"],
Contacts = ["Bob Smith"],
};
Assert.Equal(TimeSpan.FromMinutes(25), entry.Duration);
var item = Assert.IsType<MapiJournal>(MsgFile.Load(MsgFile.ToByteArray(entry)));
Assert.Equal("Phone call", item.JournalType);
Assert.Equal(TimeSpan.FromMinutes(25), item.Duration);
Assert.Equal(["Contoso"], item.Companies);- Inheritance
MapiMessageBuilderMapiJournalBuilder
Constructors
| Name | Description |
|---|---|
| MapiJournalBuilder() | Initializes a new instance of the MapiJournalBuilder class. |
MapiJournalBuilder()
MapiJournalBuilder.csInitializes a new instance of the MapiJournalBuilder class.
public MapiJournalBuilder()Properties
| Name | Description |
|---|---|
| Companies | Gets or sets the names of the companies the activity is associated with. |
| Contacts | Gets or sets the names of the contacts the activity is associated with. |
| DocumentPosted | Gets or sets whether the document was sent by email or posted to a folder during the activity. |
| DocumentPrinted | Gets or sets whether the document was printed during the activity. |
| DocumentRouted | Gets or sets whether the document was sent to a routing recipient during the activity. |
| DocumentSaved | Gets or sets whether the document was saved during the activity. |
| Duration | Gets the duration of the activity, the difference between its end and its start, in whole minutes. |
| End | Gets or sets the date and time, in UTC, when the activity ended. It sets the duration when the start is set. |
| JournalType | Gets or sets the type of the activity, such as Phone call, Meeting or Microsoft Word. |
| JournalTypeDescription | Gets or sets the description of the type of the activity, as Outlook shows it. |
| Start | Gets or sets the date and time, in UTC, when the activity started. It sets the duration when the end is set. |
Companies
MapiJournalBuilder.csGets or sets the names of the companies the activity is associated with.
public IReadOnlyList<string>? Companies { get; set; }Property value
Contacts
MapiJournalBuilder.csGets or sets the names of the contacts the activity is associated with.
public IReadOnlyList<string>? Contacts { get; set; }