/ Forums / Advansys Formativ / Creating Solutions with Formativ / Current item BodyText – can I access the HTML version?

  • Creator
    Topic
  • #4336
    dgerisch
    Participant

      What would be the process to grab the HTML version of a message body? I can retrieve it in both plain text and RTF format. I just don’t know how to grab the HTML formatted message body.

      Thanks!
      David Gerisch

    • Author
      Replies
    • #7852
      Support 1
      Participant

        To grab the HTML format of the message body, you will need to access the Attachments property of the Message object. Search the Attachments property for the item where:

        • ObjType = fgwFile
        • DisplayName = “TEXT.htm” (NOT case-sensitive)

        If a matching Attachment item is found, call its Save method to save the HTML to a file. You can use Utilities.LoadStringFromFile to load the HTML into a string variable.

        I hope this helps.

        Regards,
        Advansys Support

        #7850
        dgerisch
        Participant

          Thank you very much. 🙂

          #7851
          Support 1
          Participant

            Glad to be of assistance.

            Regards,
            Advansys Support

          Viewing 3 replies - 1 through 3 (of 3 total)
          • You must be logged in to reply to this topic.