{"id":1735,"date":"2019-03-06T10:57:45","date_gmt":"2019-03-06T09:57:45","guid":{"rendered":"https:\/\/help.cirrus-shield.com\/docs\/admin-guide\/template\/template-word-document\/"},"modified":"2019-09-27T13:36:56","modified_gmt":"2019-09-27T12:36:56","slug":"template-word-document","status":"publish","type":"docs","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/admin-guide\/template\/template-word-document\/","title":{"rendered":"Template Word Document"},"content":{"rendered":"<section class=\"fw-main-row \">\n<div class=\"fw-container\">\n<div class=\"fw-row\">\n<div class=\"fw-col-xs-12\">\n<p><span style=\"color: #ff6600\"><strong>Template Word Document<\/strong><\/span><\/p>\n<p>To create a template file, we use the <strong>office word document<\/strong>.<\/p>\n<p>In the following, we will show you in details how to generate a template for a <span style=\"color: #ff6600\"><strong>quote <\/strong><span style=\"color: #000000\">as an example.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 1:<\/strong> Open a new word document.<\/p>\n<p><strong>Step 2 : <\/strong>Start by writting down all the standard information you have, as the logo, the terms and conditions, etc.<\/p>\n<p><strong>Step 3:<\/strong> There are 4 types of parameters to know inside your template, in order to display data from Cirrus Shield.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Before explaining to you the 4 types of parameters, please go to your Cirrus Shield account and log in.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline\">Once you are logged in:<\/span><\/p>\n<ul>\n<li>Click on <strong>Setup<\/strong>.<\/li>\n<li>Go to <strong>Objects<\/strong>.\u00a0<\/li>\n<li>Click on the <strong>Quote details<\/strong>.<\/li>\n<li>Go to <strong>Custom fields\u00a0<\/strong>and find out all the <strong>field names <\/strong>you need to use inside your template.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Now that you have access to all your field names, we can go through the 4 parameters.<\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><strong><span style=\"color: #ff6600\">Data from the main object:<\/span><\/strong><\/li>\n<\/ol>\n<p>This type of data, we write it down as the following: <strong>{ObjectName.FieldName}.\u00a0<\/strong><\/p>\n<p>In our case, the object is the<strong><span style=\"color: #000000\"> quote<\/span><\/strong> and the field is <strong>Bill to Contact, <\/strong>for example : <strong>{Quote.Bill_to_Contact}.\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff6600\"><span style=\"color: #000000\">\u00a0 \u00a0 \u00a0 \u00a02.<\/span> <strong>Data from the Lookup objects of the main object:<\/strong><\/span><\/p>\n<p>This type of data, we write it down as the following :<strong>{ObjectName.LookupField.FieldName}<\/strong>\u00a0<\/p>\n<p><strong>Only for this type of data<\/strong>, we wil base our example on the <strong><span style=\"color: #ff6600\">lead<\/span><\/strong>:\u00a0<strong>{Lead.Owner.Username}<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #008000\"><strong><span style=\"text-decoration: underline\">N.B:<\/span> All Lookup Fields, you find next to them a small reaserch icon :<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3168 alignnone\" src=\"https:\/\/help.cirrus-shield.com\/wp-content\/uploads\/2019\/03\/52.png\" alt=\"\" width=\"434\" height=\"57\" srcset=\"https:\/\/help.cirrus-shield.com\/wp-content\/uploads\/2019\/03\/52.png 720w, https:\/\/help.cirrus-shield.com\/wp-content\/uploads\/2019\/03\/52-300x39.png 300w\" sizes=\"(max-width: 434px) 100vw, 434px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u00a0 \u00a0 \u00a0 3. <strong><span style=\"color: #ff6600\">Data from the Lookup Multi-Realationships objects of the main object:<\/span><\/strong><\/p>\n<p>Going back to our <strong><span style=\"color: #ff6600\">quote<\/span><\/strong> example, this third type of data, we write it down as the following :<\/p>\n<p>Your contact : <strong>{Quote.OwnerId.User.Name}<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a04. <strong><span style=\"color: #ff6600\">Data from the Related List objects of the main object:<\/span><\/strong><\/p>\n<p>For the fourth type of data :<\/p>\n<p><strong>{RelatedList.RelatedObjectName.RelatedObjectRelationshipName.FieldName}<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Based on our <span style=\"color: #ff6600\"><strong>quote<\/strong><\/span> example:<\/p>\n<p><strong>{RelatedList.Quote_Line_Item.Quote_LineItems.Name}<\/strong><\/p>\n<p><strong>{RelatedList.Quote_Line_Item.Quote_LineItems.Quantity}<\/strong><\/p>\n<p><strong>{RelatedList.Quote_Line_Item.Quote_LineItems.Unit_Price}<\/strong><\/p>\n<p><strong>{RelatedList.Quote_Line_Item.Quote_LineItems.Total}<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>In the following, we will show you how to find the <strong>Related Object Name<\/strong>, the <strong>Related Object Relationship Name<\/strong> and the <strong>Field Name<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff6600\"><strong>\u00a0 \u00a0 \u00a0 \u00a0a- How to find the related object name ?<\/strong><\/span><\/p>\n<ul>\n<li>Go to <strong>Setup<\/strong>.<\/li>\n<li>Click on <strong>Objects tab<\/strong>.<\/li>\n<li>Click on the <strong>Quote line details<\/strong>.<\/li>\n<li>You get the related object name at the top of the page: &#8221; <strong>Quote_Line_Item<\/strong> &#8220;.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff6600\"><strong>\u00a0 \u00a0 \u00a0 \u00a0b- How to find the Related Object Relationship Name ?<\/strong><\/span><\/p>\n<ul>\n<li><strong>On the same page<\/strong>, click on <strong>Custom fields.<\/strong><\/li>\n<li>Click on the <strong>Quote details<\/strong>.<\/li>\n<li>Get the relationship name: <strong>Quote_LineItems<\/strong>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff6600\"><strong>\u00a0 \u00a0 \u00a0 \u00a0c- How to find the field name ?<\/strong><\/span><\/p>\n<p>On the cutom fields page, you can find the field names you need for the quote: <strong>Quantity, Unit_Price,Total<\/strong>.\u00a0<\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #008000\"><span style=\"text-decoration: underline\">N.B:<\/span> The field name &#8221; <span style=\"text-decoration: underline\">Name<\/span> &#8220;, you can find it <span style=\"text-decoration: underline\">directly after clicking<\/span> on the <span style=\"text-decoration: underline\">Quote line details<\/span>.\u00a0<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>On your word document, after writing the fourth data type, follow these steps:<\/p>\n<ul>\n<li>Select a <strong>Field Name (Name for example).<\/strong><\/li>\n<li>Go to <strong>Insert<\/strong>.<\/li>\n<li>Click on <strong>Bookmark<\/strong>.<\/li>\n<li>Write down the <strong>Related Object Relationship Name <\/strong>of the Field Name you chose.\u00a0<\/li>\n<li>Click on <strong>Add<\/strong>.<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><span style=\"color: #008000\"><strong>N.B: <\/strong><\/span><\/span><\/p>\n<ul>\n<li><strong><span style=\"color: #008000\">You need to repeat these steps listed above for all the field names, <span style=\"text-decoration: underline\">only in this data type<\/span> (In our case, for:\u00a0Quantity, Unit_Price and Total).\u00a0<\/span><\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><span style=\"color: #008000\"><strong>If there is no bookmark added or the bookmark name was not in the right format, the generated table will not be inserted in the generated template.<\/strong><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><span style=\"color: #008000\"><strong>If the Related List object used is not related to the main object, the generated table will not be inserted in the generated template.<\/strong><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><span style=\"color: #008000\"><strong>To add headers with specific format for the table of the Related List, add a word with a specific format for example as follow:<\/strong><\/span><\/li>\n<\/ul>\n<p><strong style=\"color: #008000\">{Headers}<\/strong><\/p>\n<p><span style=\"color: #008000\"><strong>Select the header name typed above in the document, go to \u201cInsert\u201d tab, press \u201cBookmark\u201d and add a bookmark in the word document and name it as follow:<\/strong><\/span><br \/><span style=\"color: #008000\"><strong>RelatedObjectRelationshipName_Headers (<em><u>ex:<\/u><\/em> LeadTasks_Headers) in order to set the specific format in the generated template.<\/strong><\/span><\/p>\n<\/div>\n<\/div><\/div>\n<\/section>\n<p><!-- 693b1d7a5c997862a5f7ddefc4828d91 --><\/p>\n","protected":false},"author":12,"featured_media":0,"parent":1674,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"doc_tag":[],"class_list":["post-1735","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/comments?post=1735"}],"version-history":[{"count":75,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1735\/revisions"}],"predecessor-version":[{"id":3464,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1735\/revisions\/3464"}],"up":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1674"}],"next":[{"title":"Template Setup","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/admin-guide\/template\/template-setup\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1738"}],"wp:attachment":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/media?parent=1735"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/doc_tag?post=1735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}