MailReply

Summary

  • Sends a reply to the original sender of a message.

Graph Endpoint

  • POST /me/messages/{id}/reply

Parameters

Required

  • messageId: string — The original message id (alias: id).

Optional

  • comment: string — Text to include with the reply.

  • attachmentIds: number[] — Up to 10 repository attachment IDs. If provided, the system creates a draft reply, uploads the files, then sends it.

Usage (app.businessFunction)

Minimal

app.businessFunction({
  functionName: 'MicrosoftGraph',
  methodName: 'Mail',
  operation: 'Reply',
  parameters: {
    messageId: 'AAMkAGI2N...'
  }
})

With comment

app.businessFunction({
  functionName: 'MicrosoftGraph',
  methodName: 'Mail',
  operation: 'Reply',
  parameters: {
    id: 'AAMkAGI2N...',
    comment: 'Thanks for the update.'
  }
})

With attachments

app.businessFunction({
  functionName: 'MicrosoftGraph',
  methodName: 'Mail',
  operation: 'Reply',
  parameters: {
    messageId: 'AAMkAGI2N...',
    attachmentIds: [1012, 1013] // up to 10
  }
})

Response

{ "ok": true }

Notes

  • The attachmentIds must point to repository attachments with accessible file data. If external storage is configured and a blob was deleted, re-upload the file or update the attachment.

Last updated

Was this helpful?