This documentation is archived and is not being maintained.
Mapi.deleteMail Method [AX 2012]
Removes the specified message from the message store.
public int deleteMail(str messageID)
Run On
Called
Parameters
-
messageID
- Type: str
The unique message ID for the message to delete.
Return Value
Type:
int
The status #SUCCESS_SUCCES or an error code, which can be found in the #MAPI macro.
The message ID can be retrieved by using the findNext method.