<?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>Call the expression rule from the script task</title><link>https://community.appian.com/discussions/f/process/14609/call-the-expression-rule-from-the-script-task</link><description>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).
With a form that has a text field and a field to upload</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/76483?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 06:15:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e5e4a94-3449-4949-8ef1-831426bc5fff</guid><dc:creator>Madhu Sudhan Reddy Bapatu</dc:creator><description>&lt;p&gt;Good, atleast u gave valuable information to him&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65548?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 14:31:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bc8ae3c8-213c-4cb7-aab0-ec3426c98e14</guid><dc:creator>josep</dc:creator><description>&lt;p&gt;I am assuming you are developing. And your code and it is not in production. If it is already in prod there are a lot more considerations. &lt;/p&gt;
&lt;p&gt;But in development you just open the cdt, change the type of the field. Maybe you might need to update the table as well. &lt;/p&gt;
&lt;p&gt;Jose&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65545?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 14:23:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e9ef70ca-7c1a-4f16-827a-ad13c0ed7bde</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;and if I change the &amp;quot;docs&amp;quot; field by integer type, what steps should I follow next?&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: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65541?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 14:12:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e969afd2-83de-4a0d-9fcc-4dd0feac6630</guid><dc:creator>josep</dc:creator><description>&lt;p&gt;That is exactly that is part of the problem the doc field is text, at least if I were to save a document I would use integer or document as type all around when passing the document thru rules, process, cdt &lt;/p&gt;
&lt;p&gt;Jose&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65538?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 13:34:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f091becc-64e0-4812-bafd-1da9f2a4febb</guid><dc:creator>Alastr</dc:creator><description>&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;Hello,&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&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;div class="content-scrollable-wrapper"&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 do not understand how you want to do what I described. Could you include it in my expression rule?&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;&lt;br /&gt;The doc field of my first cdt &amp;quot;docs&amp;quot; is of text type.&lt;br /&gt;My expression rule is:&lt;br /&gt;&lt;br /&gt;with(&lt;br /&gt; a!queryEntity(&lt;br /&gt; entity: cons!C_CT_DS_sol,&lt;br /&gt; query: a!query(&lt;br /&gt; filter: a!queryFilter(&lt;br /&gt; field: &amp;quot;doc&amp;quot;,&lt;br /&gt; operator: &amp;quot;=&amp;quot;,&lt;br /&gt; value: ri!doc&lt;br /&gt; ),&lt;br /&gt; pagingInfo: a!pagingInfo(1,1)&lt;br /&gt; ) &lt;br /&gt; ).data&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&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;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;div class="content-scrollable-wrapper"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-small" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;if I enter my last value in the documentation field entered into the cdt in &lt;/span&gt;the TEST RULE, &lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;[Document:7547], &lt;/span&gt;shows &amp;quot;Error at input: documentation&amp;quot; and I do not know why.&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65520?ContentTypeID=1</link><pubDate>Sat, 30 Mar 2019 22:22:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5a247fa-c025-4ede-b6dc-9b6dd73535b6</guid><dc:creator>josep</dc:creator><description>&lt;p&gt;Hello Alastr,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have the field&amp;nbsp;doc of your CDT is integer? text? document?&amp;nbsp; if the nature of that field is Document I would suggest to use the Document as the type there.&amp;nbsp; if the docume is text that is by you are getting it as &amp;quot;[Document: 123123]&amp;quot;&lt;/p&gt;
&lt;p&gt;As explained If you need just to get the last record maybe just sort (using sortInfo object and pass it ascending:false())&amp;nbsp; and use a pagingInfo ( 1,1)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;hope this helps&lt;/p&gt;
&lt;p&gt;Jose&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65499?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 10:56:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1c5056c-8741-4911-82c8-d9bb4e9df561</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;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;but I should not put in the value &amp;quot;value:&amp;quot; [Document: 7945] &amp;quot;&amp;quot; &lt;br /&gt;but I want to take the document from the last record to go to &lt;br /&gt;look at its id and with that id save it in the other cdt&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65497?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 10:47:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41e763f9-18b9-4975-87f4-0237014b9204</guid><dc:creator>gayathris</dc:creator><description>&lt;p&gt;You can achieve it by applying sorting and batchsize as 1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;index(index(a!queryEntity(&lt;br /&gt;entity: cons!CPRO_CT_DS_docs,&lt;br /&gt;query: a!query(&lt;br /&gt;filter: a!queryFilter(&lt;br /&gt;field: &amp;quot;doc&amp;quot;,&lt;br /&gt;operator: &amp;quot;=&amp;quot;,&lt;br /&gt;value:&amp;quot;[Document: 7945]&amp;quot;&lt;br /&gt;),&lt;br /&gt;pagingInfo: &lt;strong&gt;a!pagingInfo(&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;startIndex: 1,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;batchSize: 1,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;sort:a!sortInfo(&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;field:&amp;quot;id&amp;quot;,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ascending:false&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;br /&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;) &lt;br /&gt;),&amp;quot;data&amp;quot;,{}),&amp;quot;id&amp;quot;,null) &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65496?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 10:38:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b003595-daea-4990-806e-39638048a966</guid><dc:creator>Alastr</dc:creator><description>&lt;pre class="tw-data-text tw-ta tw-text-small" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;and what I want is to take the id of the last record in this table and put that id in the other cdt in which only the doc is entered&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-small" dir="ltr"&gt;&lt;span lang="en"&gt;cdt&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;CDT DOCS&lt;br /&gt;id   doc&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;8   &lt;/span&gt;[Document: 7862]&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;9   &lt;/span&gt;[Document: 7910]&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;10  &lt;/span&gt;[Document: 7945]&lt;br /&gt;&lt;br /&gt;CDT SOLS&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;id   doc&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;null  &lt;/span&gt;[Document: 7862]&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;null   &lt;/span&gt;[Document: 7910]&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;null  &lt;/span&gt;[Document: 7945]&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-small" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65495?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 10:05:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2034387f-d49a-410f-a546-8dd803af5d52</guid><dc:creator>gayathris</dc:creator><description>&lt;p&gt;&lt;br /&gt;&lt;strong&gt;index(&lt;/strong&gt;index(a!queryEntity(&lt;br /&gt;entity: cons!CPRO_CT_DS_docs,&lt;br /&gt;query: a!query(&lt;br /&gt;filter: a!queryFilter(&lt;br /&gt;field: &amp;quot;doc&amp;quot;,&lt;br /&gt;operator: &amp;quot;=&amp;quot;,&lt;br /&gt;value:&amp;quot;[Document: 7945]&amp;quot;&lt;br /&gt;),&lt;br /&gt;pagingInfo: a!pagingInfo(1,-1)&lt;br /&gt;) &lt;br /&gt;),&amp;quot;data&amp;quot;,{})&lt;strong&gt;,&amp;quot;id&amp;quot;,null)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think you need to index id from query entity results that result can be mapped to other cdt&amp;nbsp;column&amp;nbsp; &amp;quot;&lt;span lang="en"&gt;idSolic&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65494?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 10:03:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28a66140-b023-4a9e-a4b6-42b768e3a677</guid><dc:creator>Alastr</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1553853796658v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65492?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 09:55:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe53f206-3e88-479e-94de-f372eafe2db3</guid><dc:creator>gayathris</dc:creator><description>&lt;p&gt;give input as&amp;nbsp;tointeger(&amp;quot;[Document: 7945]&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65491?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 09:48:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3e9e61f-3845-4916-8ac7-e55a13cb1810</guid><dc:creator>Alastr</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1553852868561v1.png" /&gt;&lt;/p&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" dir="ltr"&gt;&lt;span lang="en"&gt;it gives me failure.&lt;br /&gt;&lt;br /&gt;In my table &amp;quot;docs&amp;quot; I have&lt;br /&gt;&lt;br /&gt;id   doc&lt;br /&gt;10  &lt;/span&gt;[Document: 7945]&lt;br /&gt;&lt;br /&gt;Now, with that id &amp;quot;10&amp;quot; that I have associated with that document, &lt;/pre&gt;
&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 want to enter it into the id of my other table that also has the doc field&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65490?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 09:43:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f57e25c0-ae12-4a04-8ef3-7aceb3155550</guid><dc:creator>gayathris</dc:creator><description>&lt;pre class="tw-data-text tw-ta tw-text-small" dir="ltr"&gt;&lt;span lang="en"&gt;with(&lt;br /&gt; a!queryEntity(&lt;br /&gt; entity: cons!CPRO_CT_DS_docs,&lt;br /&gt; query: a!query(&lt;br /&gt; filter: a!queryFilter(&lt;br /&gt; field: &amp;quot;doc&amp;quot;,&lt;br /&gt; operator: &amp;quot;=&amp;quot;,&lt;br /&gt; value: &lt;strong&gt;tointeger(ri!doc)&lt;/strong&gt;&lt;br /&gt; ),&lt;br /&gt; pagingInfo: a!pagingInfo(1,-1)&lt;br /&gt; ) &lt;br /&gt; ).data&lt;br /&gt;&lt;br /&gt;Hi, Can you please use tointeger() function to get the id? [Use new code]&lt;br /&gt;&lt;br /&gt;Also when &lt;/span&gt;&lt;span lang="en"&gt;dictionary results mapped with CDT type it will do convrsion automatically.&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65489?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 09:40:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db158eae-8633-4c70-9713-ae3b43570435</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;div class="content-scrollable-wrapper"&gt;
&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-medium" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;with the rule that I have put I get a dictionary&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;pre class="tw-data-text tw-ta tw-text-small" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;with(&lt;br /&gt; a!queryEntity(&lt;br /&gt; entity: cons!CPRO_CT_DS_docs,&lt;br /&gt; query: a!query(&lt;br /&gt; filter: a!queryFilter(&lt;br /&gt; field: &amp;quot;doc&amp;quot;,&lt;br /&gt; operator: &amp;quot;=&amp;quot;,&lt;br /&gt; value: ri!doc&lt;br /&gt; ),&lt;br /&gt; pagingInfo: a!pagingInfo(1,-1)&lt;br /&gt; ) &lt;br /&gt; ).data&lt;br /&gt;&lt;br /&gt;Rule Input Name doc (Text) Expression &amp;quot;[Document: 7945]&amp;quot; Value &amp;quot;[Document: 7945]&lt;/span&gt;&lt;span lang="en"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now with the value &amp;quot;[Document: 7917]&amp;quot; from the table &amp;quot;docs&amp;quot; It is necessary to recover the &lt;br /&gt;&amp;quot;id&amp;quot; associated with that document And entered in the field &amp;quot;idSolic&amp;quot; of the other cdt. &lt;br /&gt;but this in a script task&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the expression rule from the script task</title><link>https://community.appian.com/thread/65488?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 09:32:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8844ec44-d271-4ebc-8834-919684dd1ac4</guid><dc:creator>gayathris</dc:creator><description>&lt;p&gt;Hi Alastr, Are you looking to know how to perform save in the script task output?&lt;/p&gt;
&lt;p&gt;If yes, please see the screenshot all you need to do is save the data part of query entity results[Wrap it inside the expression rule] to the PV of same CDT type&lt;span&gt;[Refer Screenshot ]&lt;/span&gt;. If you want to map it to the different CDT structure then you can do it by mapping query results individually to the fields of different CDT&lt;/p&gt;
&lt;p&gt;Let me know if anything is unclear.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/SaveCDTValue.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/SaveCDTValue-_2100_.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>