ADO.NET Provider for Microsoft Office 365

Build 26.0.9655

CreateReply

Creates a reply draft to an existing email message, preserving the message thread and including quoted content where applicable.

Stored Procedure-Specific Information

To create a basic reply to the sender only, enter:
    EXEC CreateReply MessageId = 'your_message_id_here', Comment = 'FYI'
Set ToAll to true to create a reply-all draft addressed to all original recipients.
    EXEC CreateReply MessageId = 'your_message_id_here', Comment = 'FYI', ToAll = 'true'

Input

Name Type Required Description
MessageId String True The unique identifier of the original email message being replied to. This Id is required to retrieve the correct message from the mailbox.
Comment String False The body content of the reply message. This comment appears above the original message in the reply thread.
ToAll Boolean False Specifies whether the reply should be sent to all original recipients (true) or only to the sender (false).

The default value is false.

UserId String False The identifier of the impersonated user on whose behalf the reply is being sent. Used in delegated access scenarios.

Result Set Columns

Name Type Description
Id String The ID of the Message that has been created as a draft.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655