Skip to main content

create_reply_draft

Function create_reply_draft 

Source
pub async fn create_reply_draft(
    http: &Client,
    base_url: &str,
    access_token: &str,
    message_id: &str,
    comment: &str,
) -> Result<String, ClientError>
Expand description

POST /me/messages/{id}/createReply: create a reply draft. Returns the new draft’s Graph message ID.

The comment is converted from plain text to HTML and spliced into the draft body via PATCH, so paragraph- and line-breaks survive Outlook’s HTML rendering. (Graph’s own comment parameter would collapse them.)