MailCreateDraft
Summary
Creates a draft email to edit or send later.
Graph Endpoint
POST /me/messages
Parameters
Optional
to: string[]
,cc: string[]
,bcc: string[]
subject: string
,body: string
bodyContentType: 'Text'|'HTML'
Usage (app.businessFunction)
Minimal
app.businessFunction({
functionName: 'MicrosoftGraph',
methodName: 'Mail',
operation: 'CreateDraft',
parameters: {
subject: 'Draft subject'
}
})
With recipients and body
app.businessFunction({
functionName: 'MicrosoftGraph',
methodName: 'Mail',
operation: 'CreateDraft',
parameters: {
to: ['adelev@contoso.com'],
subject: 'Proposal',
body: '<p>See attached...</p>',
bodyContentType: 'HTML'
}
})
Response
{ "ok": true, "id": "AAMkAGI2N..." }
Last updated
Was this helpful?