Mapi.findNext Method [AX 2012]

Finds the first or next message in the message store.

public str findNext(
   [str messageType, 
    str seedMessageID, 
    int flags])

Run On

Called

Parameters

messageType
Type: str
The message type; optional. For standard IPMs (interpersonal messages), use " ". If you implement a system that supports other message types, you can specify a specific message type here; optional.
seedMessageID
Type: str
The message ID at which to start the search. This is typically a messageid value that is returned from a previous call to the FindNext method; optional.
flags
Type: int
Flags that indicate first in, first out (FIFO) or unread; optional.
This parameter has two possible values:

Return Value

Type: str
The message ID of the message that is found; an empty string if no message is found.

Call this method to find the first message, and then issue subsequent calls to obtain the following messages.

Use the status method to check for Mapi errors after you call this method.

Community Additions

ADD
Show: