This example shows a sample OCPF file designed to create a task with the following details:
- Task starting the 6th of March at 8:00PM and ending at 11:00PM
- Importance set to High
- Waiting for someone else
- Subject, Body and Private flag set
TYPE "IPM.Task"
FOLDER "olFolderTasks"
OLEGUID PSETID_Task "00062003-0000-0000-c000-000000000046"
OLEGUID PSETID_Common "00062008-0000-0000-c000-000000000046"
OLEGUID PS_PUBLIC_STRINGS "00020329-0000-0000-c000-000000000046"
SET $subject = "[OCPF] Sample Task"
SET $body = "This is the sample task body"
SET $start_date = T2008-03-06 20:00:00
SET $end_date = T2008-03-06 23:00:00
SET $importance = 2
SET $task_status = 3
PROPERTY {
PR_CONVERSATION_TOPIC = $subject
PR_NORMALIZED_SUBJECT = $subject
PR_BODY = $body
PR_IMPORTANCE = $importance
PR_SENSITIVITY = 2
};
NPROPERTY {
OOM:Companies:PSETID_Common = {"OpenChange Project", "Samba Project" }
OOM:StartDate:PSETID_Task = $start_date
OOM:DueDate:PSETID_Task = $end_date
OOM:Status:PSETID_Task = $task_status
OOM:Private:PSETID_Common = B"true"
MNID_STRING:"Keywords":PS_PUBLIC_STRINGS = { "Category1", "Category2" }
};