Returns all tasks of the message and its elements (attachments, envelopes and documents).
The parameters are optional:
GetMessageTasks(Code, Error text, TaskMessage)
In the MessageSelector, select all the messages:
/SelectionBase/InputMessages[ GetAllTasks('', 'Selection is empty', 2201 )]
In Mapping: