{"id":583,"date":"2021-02-18T10:53:50","date_gmt":"2021-02-18T10:53:50","guid":{"rendered":"http:\/\/167.71.55.215\/?page_id=583"},"modified":"2022-08-12T13:08:21","modified_gmt":"2022-08-12T13:08:21","slug":"adding-documotor-salesforce-template-to-a-page","status":"publish","type":"page","link":"https:\/\/info.documotor.com\/?page_id=583","title":{"rendered":"Adding a template to a page"},"content":{"rendered":"\n<p>In the previous section, we explained how to bind a Salesforce query to a DocuMotor template. Let&#8217;s see how we can add it to a page and start using it.<\/p>\n\n\n\n<ol><li>Go to the Sales view.<\/li><li>Go to any record-based page, in our example we selected Account.<\/li><li>Click the top right corner wheel button and select Edit Page.<\/li><\/ol>\n\n\n\n<p>The Page Editor will now open.<\/p>\n\n\n\n<p><strong>Placing the DocuMotor button<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"467\" src=\"https:\/\/info.documotor.com\/wp-content\/uploads\/2021\/02\/image-27-1024x467.png\" alt=\"\" class=\"wp-image-627\" srcset=\"https:\/\/info.documotor.com\/wp-content\/uploads\/2021\/02\/image-27-1024x467.png 1024w, https:\/\/info.documotor.com\/wp-content\/uploads\/2021\/02\/image-27-300x137.png 300w, https:\/\/info.documotor.com\/wp-content\/uploads\/2021\/02\/image-27-768x350.png 768w, https:\/\/info.documotor.com\/wp-content\/uploads\/2021\/02\/image-27-1536x701.png 1536w, https:\/\/info.documotor.com\/wp-content\/uploads\/2021\/02\/image-27-1200x547.png 1200w, https:\/\/info.documotor.com\/wp-content\/uploads\/2021\/02\/image-27.png 1907w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol><li>Locate the DocuMotor Button in the Components view to the left.<\/li><li>Drag-and-drop the button at any desired location.<\/li><li>Select the created template from the dropdown. <\/li><li>Decide whether to save the resulting document returned from DocuMotor to Notes &amp; Attachments, as well as whether the resulting document should be downloaded after pressing the button or not.<\/li><li>The button configuration is finished. Click Save and Activate the page.<\/li><\/ol>\n\n\n\n<p>You are now able to call the template with a Salesforce query by pressing the template button on any Account record page. <\/p>\n\n\n\n<p>Next step is to configure the DocuMotor template. Check the guides for <a href=\"https:\/\/info.documotor.com\/?page_id=148\" data-type=\"page\">Word<\/a> or <a href=\"https:\/\/info.documotor.com\/?page_id=150\" data-type=\"page\">PowerPoint<\/a> &#8211; or the <a href=\"https:\/\/info.documotor.com\/?page_id=123\" data-type=\"page\">concepts and bindings<\/a>.<\/p>\n\n\n\n<div class=\"wp-container-1 wp-block-buttons\">\n<div class=\"wp-block-button is-style-outline\"><a class=\"wp-block-button__link\" href=\"https:\/\/info.documotor.com\/?page_id=583\">&lt; Previous<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the previous section, we explained how to bind a Salesforce query to a DocuMotor template. Let&#8217;s see how we can add it to a page and start using it. Go to the Sales view. Go to any record-based page, in our example we selected Account. Click the top right corner wheel button and select [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"parent":50,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":[],"_links":{"self":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/583"}],"collection":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=583"}],"version-history":[{"count":27,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/583\/revisions"}],"predecessor-version":[{"id":3034,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/583\/revisions\/3034"}],"up":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/50"}],"wp:attachment":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}