<?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>saving local variable value in to ri of type cdt</title><link>https://community.appian.com/discussions/f/user-interface/13946/saving-local-variable-value-in-to-ri-of-type-cdt</link><description>I have a local variable of type cdt. 
 how can i store this local!variable of type cdt &amp;quot;testcdt&amp;quot; to a ri variable of type &amp;quot;testcdt&amp;quot; 
 
 i tried a!save .. it didnt work</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: saving local variable value in to ri of type cdt</title><link>https://community.appian.com/thread/63277?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 15:06:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb280548-3393-4116-bda3-43e4a5869fd5</guid><dc:creator>chandu</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Dharsana&amp;quot;]&lt;/p&gt;
&lt;p&gt;I have a local variable of type cdt.&lt;/p&gt;
&lt;p&gt;how can i store this local!variable of type cdt &amp;quot;testcdt&amp;quot; to a ri variable of type &amp;quot;testcdt&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i tried a!save .. it didnt work&lt;/p&gt;
&lt;div style="clear:both;"&gt;&amp;nbsp;&lt;/div&gt;
&lt;p&gt;[/quote]Hi Dharsana, you can do&amp;nbsp; a!save(ri!ruleInput,local!variable). Please ping us what is the issue you are facing or share us&amp;nbsp; the code while doing a!save()&lt;br /&gt;If &amp;nbsp;you might need to use other way in Expression Rule instead of a!save, then&lt;/p&gt;
&lt;p&gt;load(&lt;br /&gt; local!test:rule!AMS_getWorkDetailsById(10), /* query rule to get the details from DB which is of type Ams_workEnagagement&lt;br /&gt; type!AMS_workEngagement(&lt;br /&gt; fieldName:index(local!test,&amp;quot;FieldName&amp;quot;,&amp;quot;&amp;quot;)&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: saving local variable value in to ri of type cdt</title><link>https://community.appian.com/thread/63275?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 12:33:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3bf480b8-4de3-4ae4-8f8c-04405c5f80cf</guid><dc:creator>vijay</dc:creator><description>Hi Dharsana,&lt;br /&gt;
&lt;br /&gt;
Are you sure is the both variables are in same type?If possible can you share your code snippet then It would be easy to address the issue.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: saving local variable value in to ri of type cdt</title><link>https://community.appian.com/thread/63274?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 12:10:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee793bc8-79dd-401c-bea3-e2925882bab5</guid><dc:creator>ganeshbabuj</dc:creator><description>please share code snippet, only reason why u can not save could be ur trying to save inside a With ()&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: saving local variable value in to ri of type cdt</title><link>https://community.appian.com/thread/63273?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 12:09:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dcbbfe2e-beb6-4750-81f9-31520160db45</guid><dc:creator>edoardos</dc:creator><description>First of all is the local variable defined in the load ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>