{"id":961,"date":"2022-02-07T19:58:36","date_gmt":"2022-02-07T19:58:36","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=961"},"modified":"2022-08-08T13:49:23","modified_gmt":"2022-08-08T13:49:23","slug":"get-html-text-from-template","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/get-html-text-from-template\/","title":{"rendered":"Get HTML Text From Template"},"content":{"rendered":"<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p><a name=\"abstract\"><\/a>Requires deployed extension<a href=\"https:\/\/integroscrm.com\/lb-components\/\" rel=\"noreferrer noopener\" target=\"_blank\">&nbsp;LB Templates<\/a>&nbsp;into Sugar Environment.<\/p>\n<p>LB Templates is used to create messages templates, which are filled with values within the flowcharts. Templates can be used to:<\/p>\n<ul>\n<li>create an Email body to be sent using flowcharts<\/li>\n<li>create PDF document<\/li>\n<li>create HTML to be sent externally<\/li>\n<li>create TimeLine Viewer and Need ToDo Viewer messages<\/li>\n<\/ul>\n<\/div>\n\n\n<p>Creates HTML from Template. Most used to compose body for an Email in <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/send-email\/\">Send Email<\/a>.<\/p>\n\n\n\n<p><strong>inputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#9ed267;\">template<\/span> &#8211; select template from the list. The list is composed of records in LB Templates module in Sugar.<\/p>\n\n\n<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p>Tip: if there is no needed Template try to refresh metadata in the current Logic Builder Project.<\/p>\n<\/div>\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><span style=\"color:#9ed267;\">parameters<\/span> &#8211; map template variables with values. Use outputs from Sugar Fields (<a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-entity-attributes\/\">Get Entity Attributes<\/a>\/<a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-attribute-data\/\">Get Attribute Data<\/a>), results of <span style=\"color:#ec8f45;\">Math<\/span> operations, <span style=\"color:#ec8f45;\">Constants<\/span>, <span style=\"color:#ec8f45;\">Tables<\/span>, etc.<\/p>\n\n\n\n<p><strong>outputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ec8f45;\">html<\/span> &#8211; the HTML created using the template with filled variables by mapping specified in parameters. Use as input to <span style=\"color:#9ed267;\">text<\/span> in <span style=\"color:#ec8f45;\">Save Email<\/span> or <span style=\"color:#6888c9;\">Rich Text Message<\/span> in <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/create-tlv-record\/\">Create TLV Record<\/a>.<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-121-6d0e8cd5bbd445b1b0318bcf2ccb1a96.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-121-6d0e8cd5bbd445b1b0318bcf2ccb1a96-1024x525.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p><div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_961' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-961\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-67d39af0440ef' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-67d39af0440ef'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='961' \n                                      data-rating='0'\n                                      data-rater-starsize='24'\n                                      data-rater-readonly='false'\n                                      data-rater-nonce='fa81b01ba5' \n                                      data-issingular='false'\n                                    ><\/div><div class=\"yasr-vv-stats-text-container\" id=\"yasr-vv-stats-text-container-67d39af0440ef\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"961\" \n                               id=\"yasr-stats-dashicon-67d39af0440ef\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-67d39af0440ef\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-67d39af0440ef\">0<\/span>  Average: <span id=\"yasr-vv-average-container-67d39af0440ef\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-67d39af0440ef' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-67d39af0440ef' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Requires deployed extension&nbsp;LB Templates&nbsp;into Sugar Environment. LB Templates is used to create messages templates, which are filled with values within the flowcharts. Templates can be used to: create an Email body to be sent using flowcharts create PDF document create HTML to be sent externally create TimeLine Viewer and Need ToDo Viewer messages Creates HTML &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-html-text-from-template\/\"> <span class=\"screen-reader-text\">Get HTML Text From Template<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"tags":[],"class_list":["post-961","page","type-page","status-publish","hentry"],"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/comments?post=961"}],"version-history":[{"count":5,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/961\/revisions"}],"predecessor-version":[{"id":2095,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/961\/revisions\/2095"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=961"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}