<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Docx from Dynamic template</title><link>https://community.appian.com/discussions/f/process/33981/docx-from-dynamic-template</link><description>hi i want to create a template and xml data model for Docx from dynamic template. how to code that. and how to create the template. can i get an idea? 
 it should be like letter.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129275?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 10:28:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83aeb9b2-11c5-439e-9b6a-58db21491c26</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;Thank you for help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129265?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 10:02:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04ff5146-c3e5-449c-8573-4b8c3e5f2aa3</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Great! Please verify answers that were helpful for you if any, Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129260?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 09:54:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:371873d5-51d5-42ae-8aa0-54096fe135fa</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;fixed. Issue was not configure the fields in the template. thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129192?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 13:38:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae2b1228-0752-440f-9261-eecf99f104b6</guid><dc:creator>AshwiniAbhale</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please refer screenshot insert all your tags.&lt;/p&gt;
&lt;p&gt;insert--&amp;gt; Field --&amp;gt; Merge field&lt;/p&gt;
&lt;p&gt;Then only tags gets replace.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1707399463376v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1707399389392v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129183?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 11:34:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae17feab-0203-4136-8537-6db7c5f2ab46</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Node configuration please. and a screenshot of your process would also help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129181?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 10:57:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a33be92-5528-47e9-af59-1d87b17e608b</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;&lt;strong&gt;Re: Crest Nicholson Operations Limited&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Property: &amp;lt;&amp;lt;${doc.project.headding2}&amp;gt;&amp;gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;this is the template and following one is the xml model&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&amp;lt;project&amp;gt;&amp;lt;headding2&amp;gt;aaaaaaaa&amp;lt;/headding2&amp;gt;&amp;lt;/project&amp;gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;what is the issue here? why the document is not generating&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129165?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 07:01:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca899aaf-4559-4624-a2a3-275b4735053b</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Could you please show the Expression you have wrote and also the smart service configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129158?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 06:09:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:847e2d23-7e39-4389-a98c-4e5d8d6c24dd</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;in here it is not going to generate the document. not showing any error. but document is not generating.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129156?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 03:54:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df0f3502-ceab-4b81-aee6-12242d9217a5</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;no my task is to use Docx from dynamic template&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129142?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2024 17:10:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a39a105-4e38-4730-b333-32d9a3bdc964</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Did you check this:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.4/Word_Doc_from_Template_Smart_Service.html"&gt;MS Word 2007 Doc from Template Smart Service - Appian 23.4&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129132?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2024 16:00:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:64a5b184-e0ee-4b86-9ade-e5f0ee3e9820</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;I will try this. Thank you for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129130?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2024 15:56:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5976a137-1aaf-484e-90cb-527ac77dd9c3</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Your Word Template would look something in this way&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:298px;max-width:489px;" height="298" src="/resized-image/__size/978x596/__key/communityserver-discussions-components-files/14/pastedimage1707321499683v1.png" width="489" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Do not want to provide the actual file since it would only affect your learning.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You will have to pass the data using the varable. Your values in the doc will be defined in this format doc.VariableName.field .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;you will need to construct the data in a expression rule in the below format (Example). Please refer and write your own expression.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;= &amp;quot;&amp;lt;letter&amp;gt;&amp;quot; &amp;amp; 
&amp;quot;&amp;lt;date&amp;gt;&amp;quot; &amp;amp; text(ri!letter.date,&amp;quot;yyyy-mm-dd&amp;quot;) &amp;amp; &amp;quot;&amp;lt;/date&amp;gt;&amp;quot; &amp;amp; 
&amp;quot;&amp;lt;name&amp;gt;&amp;quot; &amp;amp; ri!letter.name&amp;quot;&amp;lt;/name&amp;gt;&amp;quot; &amp;amp;
/*other fields in a non ultiple variable*/

a!forEach(
  items: ri!names/*Variable that contains the list of data in the Table*/,
  expression: &amp;quot;&amp;lt;names&amp;quot; &amp;amp; 
  &amp;quot; name=&amp;quot; &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; fv!item.name &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; 
  &amp;quot; lastName=&amp;quot; &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; fv!item.lastName &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp;
  &amp;quot; mail=&amp;quot; &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; fv!item.mail &amp;amp; &amp;quot;&amp;#39;&amp;quot;&amp;amp;  
  &amp;quot; /&amp;gt;&amp;quot;
) &amp;amp; &amp;quot;&amp;lt;/letter&amp;gt;&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please do more research on how to write XML and DOCX template which would help you explore more ways of creating a dynamic doc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129122?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2024 15:39:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0121794f-20d4-4fae-aac7-87d3765eac7e</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1707320264932v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It should be like this. all the names, address, mobile number all those should be dynamic values. I want know how to config template and xml model for them&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from Dynamic template</title><link>https://community.appian.com/thread/129118?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2024 15:29:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:502c1159-b0e4-46a6-be1a-bdf9e26df8b1</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &amp;nbsp;&lt;/p&gt;
&lt;p&gt;We can show some Ideas only if you give us more information.&lt;br /&gt;1. What is the content?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Will it contains tables or any other images?&lt;/p&gt;
&lt;p&gt;3.Does it have any dynamic content?&lt;/p&gt;
&lt;p&gt;4. What are the fields that will change or update dynamically?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>