Appearance
Function: markEmailAsComplete()
ts
function markEmailAsComplete(client: Client, messageId: string): Promise<any>;Defined in: src/ms-graph/outlook.ts:273
Mark an email message as complete by setting its flag status.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | The Microsoft Graph client. |
messageId | string | The ID of the email message. |
Returns
Promise<any>
The updated message object.
Example
ts
const client = await getMsGraphClient(creds);
await markEmailAsComplete(client, 'AAMkAD...');
console.log('Email marked as complete.');