PostOffice.getAllEmailMessages()
The message returns an array of NotificationMessage
objects.
- Availability
-
IBM® Tivoli® Identity Manager 4.x
IBM Tivoli Identity Manager 5.x
IBM Security Identity Manager 6.x
IBM Security Identity Manager 7.0.
- Synopsis
PostOffice.getAllEmailMessages()
- Description
- This JavaScript extension
returns an array of
NotificationMessage
objects for obtaining the Subject, Text Body, and HTML Body of each message in an aggregate message. - Usage
- An example of how to iterate through the returned array in JavaScript is
as follows:
Here are the email text bodies fetched using the JavaScript extension: <JS> var msgListIterator = PostOffice.getAllEmailMessages().iterator(); var returnString = "<br />"; while (msgListIterator.hasNext()) { returnString = returnString + msgListIterator.next().getMessage() + "<br />"; } return returnString; </JS>