Share via


TaskItem.Respond Method

Outlook Developer Reference

Responds to a task request.

Syntax

expression.Respond(Response, fNoUI, fAdditionalTextDialog)

expression   A variable that represents a TaskItem object.

Parameters

Name Required/Optional Data Type Description
Response Required OlTaskResponse The response to the request.
fNoUI Required Variant True to not display a dialog box; the response is sent automatically. False to display the dialog box for responding.
fAdditionalTextDialog Required Variant 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.

Return Value
A TaskItem that represents the response to the task request.

Remarks

When you call the Respond method with the olMeetingAccepted or olMeetingTentative parameter, Outlook will create a new appointment item that duplicates the original appointment item. The new item will have a different Entry ID. Outlook will then remove the original item. You should no longer use the Entry ID of the original item, but instead call EntryID to obtain the Entry ID for the new item for any subsequent needs. This is to ensure that this appointment item will be properly synchronized on your calendar if more than one client computer accesses your calendar but may be offline using the cache mode occasionally.

The following table describes the behavior of the Respond method depending on the parent object, and the fNoUI and fAdditionalTextDialog parameters.

fNoUI, fAdditionalTextDialog Result
True, True

Response item is returned with no user interface. To send the response, you must call the Send method.

True, False

Same result as with True, True.

False, True

If the Display method has been called, the user prompt appears. Otherwise, the item is sent without prompting and the resulting item is nothing.

False, False

Does nothing.

See Also