<?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/plug-ins/9629/docx-from-dynamic-template</link><description>I am trying to implement docx from dynamic template smart service which is a shared component. It is having 3 mandatory parameters. 1. Document template 2. Xml Datamodel 3. Savein folder I am trying to create a cdt name project which contains 3 parameters</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/42574?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 21:02:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fffacf4d-fe53-42a0-9acf-ad18d2218083</guid><dc:creator>thirumaladevis</dc:creator><description>Thank you @christopherb it is working now&lt;br /&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/42439?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 14:00:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9466f3e7-5bab-4fb2-9ab6-e94f410f3fb1</guid><dc:creator>Christopher Biagiotti</dc:creator><description>@thirumaladevis I have updated your word template with the correct field names - both dob and address were actually referencing the name field as I suspected. Please see the attached screenshots to see where the changes were made. &lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/template1.jpg"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/template1.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/template2.jpg"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/template2.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/wordTemplateForDynamicGeneration-_2800_1_2900_.docx"&gt;wordTemplateForDynamicGeneration (1).docx&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/42436?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 13:45:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed6df5fa-2f8c-40bc-b8e7-cac8150d1a30</guid><dc:creator>thirumaladevis</dc:creator><description>@christopherb225&lt;br /&gt; I have checked that is correct only.&lt;br /&gt;«${doc.project.name}»&lt;br /&gt;«${doc.project.dob}»&lt;br /&gt;«${doc.project.address}»&lt;br /&gt;&lt;br /&gt;Is there any other way for template?&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/42435?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 13:38:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92a6d232-c205-4ce5-9818-bfc8bdd32a87</guid><dc:creator>Christopher Biagiotti</dc:creator><description>@thirumaladevis Make sure in ${doc.project.dob} and ${doc.project.address} that the actual field names are correct. In your template, right click on them and choose &amp;quot;Edit Field&amp;quot;, it probably got copied as ${doc.project.name} for all fields.&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/42409?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 04:39:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85b37b82-060d-4969-aad9-00b269bc3a43</guid><dc:creator>thirumaladevis</dc:creator><description>@christopherb225&lt;br /&gt;&lt;br /&gt;I changed the name and other attributes, now it is just printing the first value in 3 fields.&lt;br /&gt;Like if I gave name as &amp;quot;abc&amp;quot; in my interface then for &amp;quot;dob&amp;quot; and &amp;quot;address&amp;quot; also &amp;quot;abc&amp;quot; is printing in the newly generated document. But in process variables it is showing the 3 different values.&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/docx-generated.docx"&gt;docx generated.docx&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/42372?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 12:30:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bfcba717-2f7f-479e-bf76-73968408d0e2</guid><dc:creator>Christopher Biagiotti</dc:creator><description>@thirumaladevis,&lt;br /&gt;&lt;br /&gt;I think the field names and the xml elements are case sensitive. I just tested with the attached sail and attached word template.. I get an error when changing the case of any of the xml elements but works fine when they are the same. If the field is ${doc.project.name} make sure the xml element is &amp;lt;name&amp;gt; not &amp;lt;Name&amp;gt;.&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/Projecttest.docx"&gt;Projecttest.docx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/sample1.txt"&gt;sample1.txt&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/42356?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 02:30:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:edf85f51-7348-48af-9f89-277a9aecf1be</guid><dc:creator>thirumaladevis</dc:creator><description>@ christopherb225, the output is &amp;lt;Project&amp;gt;&amp;lt;Name&amp;gt;&amp;lt;/Name&amp;gt;&amp;lt;Dob&amp;gt;&amp;lt;/Dob&amp;gt;&amp;lt;Address&amp;gt;&amp;lt;/Address&amp;gt;&amp;lt;/Project&amp;gt;&lt;br /&gt;just giving the format.&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/42308?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 14:16:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:864aaa3f-aca4-4ed5-86e0-d86d64eb252b</guid><dc:creator>Christopher Biagiotti</dc:creator><description>@thirumaladevis, can you post the XML string that&amp;#39;s returned from the expression rule? That error might indicate a mapping between an xml element and a merge field name don&amp;#39;t match&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/42295?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 06:01:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0539eb83-ec5f-43b5-a0ab-8382ba7b90ec</guid><dc:creator>sandeepr343</dc:creator><description>Hi..You need to create a expression rule which will basically return you desired dynamic data in xml format. Create a docx template and code your input field accordingly. for please once refer shared component Advanced Document Templating&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUhu-uLnNBHXrhZLS3oZ9_EKH3lPkOEMBIIg/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;let me know if you face any issue after that.&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/42293?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 03:19:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:740d453c-6e23-40f6-8965-4880190f2553</guid><dc:creator>thirumaladevis</dc:creator><description>Thanks @christopherb225 &lt;br /&gt;But it is throwing a error message while running the process model but the process is completed. &lt;br /&gt;&lt;br /&gt;error : freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:==&amp;gt; ___HyperlinkRegistryword_document_xml.hyperlinks  &lt;br /&gt;[in template &amp;quot;fr.opensagres.xdocreport.document.docx.DocxReport@53627cec!word/_rels/document.xml.rels&amp;quot; at line 1, column 1404]&lt;br /&gt;Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if].&lt;br /&gt;(These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, &lt;br /&gt;(myOptionVar.foo)??The failing instruction:==&amp;gt; #list ___HyperlinkRegistryword_docume...  [in template &amp;quot;fr.opensagres.xdocreport.document.docx.DocxReport@53627cec!word/_rels/document.xml.rels&amp;quot; at line 1, column 1397]&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/42247?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 12:38:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cedddb89-9025-4648-bcc5-e5017ae16089</guid><dc:creator>Christopher Biagiotti</dc:creator><description>I would create an expression rule and pass in the project cdt pv!project. The rule would look something like:&lt;br /&gt;&lt;br /&gt;=&amp;quot;&amp;lt;Project&amp;gt;&amp;quot;&amp;amp;&lt;br /&gt;&amp;quot;&amp;lt;Name&amp;gt;&amp;quot;&amp;amp;ri!project.name&amp;amp;&amp;quot;&amp;lt;/Name&amp;gt;&amp;quot;&amp;amp;&lt;br /&gt;&amp;quot;&amp;lt;Dob&amp;gt;&amp;quot;&amp;amp;ri!project.dob&amp;amp;&amp;quot;&amp;lt;/Dob&amp;gt;&amp;quot;&amp;amp;&lt;br /&gt;&amp;quot;&amp;lt;Address&amp;gt;&amp;quot;&amp;amp;ri!project.address&amp;quot;&amp;amp;&amp;quot;&amp;lt;/Address&amp;gt;&amp;quot;&amp;amp;&lt;br /&gt;&amp;quot;&amp;lt;/Project&amp;gt;&amp;quot;&lt;br /&gt;&lt;br /&gt;Your word template looks correct.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>