IGraphClient.CreateRule method

Create a message rule by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user’s Inbox meets the specified conditions. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.ReadWrite Delegated (personal Microsoft account) MailboxSettings.ReadWrite Application MailboxSettings.ReadWrite

public InboxRule CreateRule(InboxRule rule)
Parameter Type Description
rule InboxRule Rule to be created in inbox

Return Value

Created rule

See Also