Skip to main content
gmail.markMessagesAsImportant adds Gmail’s IMPORTANT label to messages, placing them in the Important view.

Example

Mark newly received messages from a billing system as important:

Inputs

Inputs accept compatible signals.

Output

Returns a Signal<string[]> with the modified message IDs in input order. Gmail represents importance with the IMPORTANT system label. Gmail’s own importance classifier can change this state later, and the action updates only the supplied messages, not every message in their threads.