MailAttachmentGet
Summary
Retrieves a specific attachment. File attachments include content as Base64.
Graph Endpoint
GET /me/messages/{messageId}/attachments/{attachmentId}
Parameters
Required
messageId: string
attachmentId: string
Usage (app.businessFunction)
app.businessFunction({
functionName: 'MicrosoftGraph',
methodName: 'Mail',
operation: 'AttachmentGet',
parameters: {
messageId: 'AAMkAGI2N...',
attachmentId: 'AQQkADk2...'
}
})
Response
{
"attachment": {
"id": "AQQkADk2...",
"name": "report.pdf",
"contentType": "application/pdf",
"size": 123456,
"contentBytesBase64": "JVBERi0xLjQKJc..."
}
}
Notes
Non‑file attachments (e.g., item references) may not include
contentBytesBase64
.
Last updated
Was this helpful?