<?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>Enter a value from one cdt into another and create a script</title><link>https://community.appian.com/discussions/f/process/14626/enter-a-value-from-one-cdt-into-another-and-create-a-script</link><description>Hello, I&amp;#39;m new to appian and I can not solve a question 
I have two tables. The first &amp;quot;request&amp;quot; table has two fields: id (integer), name (text) and document (text).
The second table &amp;quot;documentation&amp;quot; also has two fields: iddocum (integer) and docum (text</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Enter a value from one cdt into another and create a script</title><link>https://community.appian.com/thread/65600?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 10:19:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d63fd372-1c03-4253-8034-57aa85d8356c</guid><dc:creator>chandhinir</dc:creator><description>&lt;p&gt;Assuming the documentation process variable is empty,I have configured the MNI.&lt;/p&gt;
&lt;p&gt;Please find the screenshots below to configure the script task.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/5861.Screen-Shot-2019_2D00_04_2D00_03-at-6.16.55-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/8585.Screen-Shot-2019_2D00_04_2D00_03-at-6.18.17-PM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enter a value from one cdt into another and create a script</title><link>https://community.appian.com/thread/65599?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 10:05:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bda59f9e-f051-444c-922b-01cc3ec01004</guid><dc:creator>Alastr</dc:creator><description>&lt;div class="oSioSc"&gt;
&lt;div id="tw-target"&gt;
&lt;div class="gsrt tw-ta-container tw-nfl" id="tw-target-text-container"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-small" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;I already read that document but I do not clarify about my problem&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enter a value from one cdt into another and create a script</title><link>https://community.appian.com/thread/65598?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 10:01:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2fe8d6e-e6e2-4d49-b63b-d57e24d1f6ca</guid><dc:creator>chandhinir</dc:creator><description>&lt;p&gt;you can use Multiple node instances (MNI) to set the values. Please find more info in the below link:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/17.2/Data_Tab.html#Multiple_Node_Instances_and_the_tp!instanceIndex_Property"&gt;https://docs.appian.com/suite/help/17.2/Data_Tab.html#Multiple_Node_Instances_and_the_tp!instanceIndex_Property&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enter a value from one cdt into another and create a script</title><link>https://community.appian.com/thread/65595?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 09:39:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90604791-70fd-4ab7-9e56-93301a090674</guid><dc:creator>Alastr</dc:creator><description>&lt;p&gt;There is one wrong thing. After sending the form, when you save the values, in the first cdt &amp;quot;requests&amp;quot; a value is generated for the id (which has increased 1 If more forms are sent. The id field would not be null)&lt;/p&gt;
&lt;p&gt;id name&amp;nbsp; document&lt;br /&gt;1 test&amp;nbsp; &amp;nbsp; &amp;nbsp; [Document: 7910]&lt;br /&gt;2 test2&amp;nbsp; &amp;nbsp; [Document: 7917]&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/3617.pastedimage1554282142682v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;pre class="tw-data-text tw-ta tw-text-small" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;The id with value 1 or 2, I want to take it from the cdt &amp;quot;request&amp;quot; and enter it
in iddocum of the cdt &amp;quot;documentation&amp;quot;. This is what I need to do

My task script would be this one. How should I enter the data in the output node
of the task script?&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enter a value from one cdt into another and create a script</title><link>https://community.appian.com/thread/65590?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 02:38:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bad31fb5-f027-4508-ad05-3b91efec3d1d</guid><dc:creator>chandhinir</dc:creator><description>&lt;p&gt;Hi Alastr,&lt;br /&gt;&lt;br /&gt;Considering the form values are saved like below:&lt;br /&gt;Process variables:&lt;br /&gt;1)request(this&amp;nbsp;will be your request cdt type)&lt;br /&gt;2)documentation(this will be your documentation cdt type)&lt;br /&gt;&lt;br /&gt;For example,&lt;br /&gt;pv!request.id-null&lt;br /&gt;pv!request.name-&amp;quot;test&amp;quot;&lt;br /&gt;pv!request.document-&amp;quot;7917&amp;quot;&lt;/p&gt;
&lt;p&gt;pv!documentation.id-null&lt;/p&gt;
&lt;p&gt;pv!documentation.iddocum-null&lt;/p&gt;
&lt;p&gt;pv!documentation.document-&amp;quot;7917&amp;quot;&lt;/p&gt;
&lt;p&gt;write the request data using &amp;quot;Write to datastore entity&amp;quot; smart service and save the output from the Write to datastore entity node in your request process variable.It will be like this:&lt;br /&gt;&lt;br /&gt;pv!request.id-1&lt;br /&gt;pv!request.name:test&lt;br /&gt;pv!request.document:7917&lt;br /&gt;&lt;br /&gt;Place a script task after the write to datastore entity node and set the pv!request.id value in pv!documentation.&lt;span&gt;iddocum and write the documentation data using another write to datastore entity node&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>