TaskItem.Respond (Outlook)
Responds to a task request.
When you call the Respond method with the olTaskAccept parameter, Outlook creates a new TaskItem that duplicates the task request item. The new item has a different Entry ID. Outlook then removes the original item. The following table describes the behavior of the Respond method depending on the parent object, and the fNoUI and fAdditionalTextDialog parameters.
Respond (Response, fNoUI, fAdditionalTextDialog)
Dim timRespond As TaskItem
Set timRespond = Session.CreateSharingItem.Move.Items(1).Respond(Response:=olTaskAccept, fNoUI:=True, fAdditionalTextDialog:=True)
Arguments
The following arguments are required:
Response (OlTaskResponse) - The response to the request.
Possible values are
olTaskAccept | Task accepted. |
olTaskAssign | Task reassigned. |
olTaskDecline | Task declined. |
olTaskSimple | Task is a simple task and cannot be accepted, declined, or assigned. This constant is not a valid parameter to the TaskItem.Respond method. |
fNoUI (Boolean) - True to not display a dialog box; the response is sent automatically. False to display the dialog box for responding.
fAdditionalTextDialog (Boolean) - False to not prompt the user for input; the response is displayed in the inspector for editing. True to prompt the user to either send or send with comments. This argument is valid only if fNoUI is False.