Getting the generated html from "HTML doc from template"

I'm generating an HTML document from a template with the smart service, I'm then saving the document to an Appian folder. I need to get the html from the document so that i can save it to the database as well as i need to display the generated html. How do i get the generated HTML into a text string so that I can save it to a database?

OriginalPostID-238690

  Discussion posts and replies are publicly visible