GetAssociatedTask Method

Applies To

TaskRequestItem object.

Description

Returns a TaskItem object that represents the requested task.

Syntax

expression.GetAssociatedTask(AddToTaskList)

expression An expression that returns a TaskRequestItem object.

AddToTaskList Required Boolean. True if the task is added to the default Tasks folder.

Example

This example accepts a task request, sending the response without displaying the inspector.

Set myNewTask = myTaskRequest.GetAssociatedTask(True)
myNewTask.Respond olResponseAccepted, True