IT Process Automation

  • 1.  Is there a standard format to the MailBody variable?

    Posted Mar 08, 2018 10:20 AM

    Looking for the standard format of the incoming email so that I can parse the contents.

    • Subject value
    • Body of the Email

     

    Any example of reading an email in a JavaScript operator would be great.



  • 2.  Re: Is there a standard format to the MailBody variable?

    Broadcom Employee
    Posted Mar 08, 2018 12:59 PM

    The help describes the following output from the "Get Mail Content" operator.  I would recommend building the operator and running the process.  You can then right click on the output variables in the dataset a click "view expression" to get the exact variable name for your process.

     

    Output Parameters

     

    • MessageContent
      (ValueMap) Returns the message contents and attachment contents.
      Contains:
      • ResultRow
        AttachmentContents
        MailContents
        AttachmentFiles
    • FolderName
    • MarkMessagesAsSeen
    • MessageContentStartIndex
    • MessageContentLength
    • IsProcessAttachement
    • ProcessAttachmentType
    • DestinationFolderName
    • GenerateUniqueName
    • MessageAttachmentStartIndex
    • MessageAttachmentLength
    • MessageID
    • MessageNumber
    • Subject
    • From
    • IsRegExp
    • Body
    • SentFromDate
    • SentToDate
    • FlagField
    • FlagValue
    • Protocol
    • ServerHost
    • ServerPort
    • UserName
    • Password