Skip to content

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

ParameterTypeDescription
clientClientThe Microsoft Graph client.
messageIdstringThe 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.');

Matterway Assistant SDK Documentation