Mapi.readMail Method [AX 2012]

Retrieves a message from the message store.

public MapiMessage readMail(str messageID, [int flags])

Run On

Called

Parameters

messageID
Type: str
The unique ID of the message to retrieve. The ID can be found by using the findNext method.
flags
Type: int
A list of flags; optional.
The valid flags are as follows:

Return Value

Type: MapiMessage Class
The MapiMessage object that is retrieved or nullNothingnullptrunita null reference (Nothing in Visual Basic).

Community Additions

ADD
Show: