TaskRequestItem Object
TaskRequestItem Multiple objects |
Represents an item in an Inbox (mail) folder. A TaskRequestItem object represents a change to the recipient's Tasks list initiated by another party or as a result of a group tasking.
Using the TaskRequestItem Object
Unlike other Microsoft Outlook objects, you cannot create this object. When the sender applies the Assign and Send methods to a TaskItem object to assign (delegate) the associated task to another user, the TaskRequestItem object is created when the item is received in the recipient's Inbox.
The following Visual Basic for Applications (VBA) example creates a simple task, assigns it to another user, and sends it. When the task request arrives in the recipient's Inbox, it is received as a TaskRequestItem.
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olTaskItem)
myItem.Assign
Set myDelegate = myItem.Recipients.Add("Jeff Smith")
myItem.Subject = "Prepare Agenda For Meeting"
myItem.DueDate = #9/20/97#
myItem.Send
The following example shows how to perform the same task using Microsoft Visual Basic Scripting Edition (VBScript).
Set myItem = Application.CreateItem(3)
myItem.Assign
Set myDelegate = myItem.Recipients.Add("Jeff Smith")
myItem.Subject = "Prepare Agenda For Meeting"
myItem.DueDate = #9/20/97#
myItem.Send
Use the GetAssociatedTask method to return the TaskItem object, and work directly with the TaskItem object to respond to the request.
Properties | Actions Property | Application Property | Attachments Property | AutoResolvedWinner Property | BillingInformation Property | Body Property | Categories Property | Class Property | Companies Property | Conflicts Property | ConversationIndex Property | ConversationTopic Property | CreationTime Property | DownloadState Property | EntryID Property | FormDescription Property | GetInspector Property | Importance Property | IsConflict Property | ItemProperties Property | LastModificationTime Property | Links Property | MarkForDownload Property | MessageClass Property | Mileage Property | NoAging Property | OutlookInternalVersion Property | OutlookVersion Property | Parent Property | Saved Property | Sensitivity Property | Session Property | Size Property | Subject Property | UnRead Property | UserProperties Property
Methods | Close Method | Copy Method | Delete Method | Display Method | GetAssociatedTask Method | Move Method | PrintOut Method | Save Method | SaveAs Method | ShowCategoriesDialog Method
Events | AttachmentAdd Event | AttachmentRead Event | BeforeAttachmentSave Event | BeforeCheckNames Event | BeforeDelete Event | Close Event | CustomAction Event | CustomPropertyChange Event | Forward Event | Open Event | PropertyChange Event | Read Event | Reply Event | ReplyAll Event | Send Event | Write Event
Parent Objects
Child Objects | Actions Object | Attachments Object | Conflicts Object | FormDescription Object | ItemProperties Object | Links Object | UserProperties Object