<?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>How to update a object without a new variable.</title><link>https://community.appian.com/discussions/f/rules/39432/how-to-update-a-object-without-a-new-variable</link><description>I have a list like {1,2,3,4}, I want to add new items like {1,2,3,4,5,6,.....} in the same list without using a new variable to store the new list.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to update a object without a new variable.</title><link>https://community.appian.com/thread/149822?ContentTypeID=1</link><pubDate>Sat, 12 Jul 2025 11:27:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21247a9d-2199-4bcd-b7eb-511654e57343</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;If you want to update the same variable then try manipulating the list inside saveinto of a interface component and keep the target also there same variable. Eg&lt;/p&gt;
&lt;p&gt;a!save(ri!value, append(ri!value,{4,5})&lt;/p&gt;
&lt;p&gt;Similarly in process models output tabs within nodes allows to perform operations on a list and saveinto the same original variable. Apart from this, without using any variables in picture, there is no way to perform operations and keep it stored or pass along in processes!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update a object without a new variable.</title><link>https://community.appian.com/thread/149816?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 08:10:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c114cfc-357b-43f9-b258-3a7a401abf1e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Why is that inflexible? It is just a different way of doing things. And, among other things, it avoids side effects.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/25.2/functions-side-effects.html"&gt;https://docs.appian.com/suite/help/25.2/functions-side-effects.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update a object without a new variable.</title><link>https://community.appian.com/thread/149814?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 07:14:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea509ec3-9c36-43f7-8faa-e32aac7360fa</guid><dc:creator>Peon</dc:creator><description>&lt;p&gt;So sad, it&amp;#39;s really inflexible. Thank you for your answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update a object without a new variable.</title><link>https://community.appian.com/thread/149813?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 07:13:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad69700b-5cb7-4b31-b05d-4eb3b149f954</guid><dc:creator>Peon</dc:creator><description>&lt;p&gt;I know how to update a list, what I want to ask is how to update in the same object. after insert or append I need a new variable to receive. That&amp;#39;s not what I want. It seems appian not support this behavior&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update a object without a new variable.</title><link>https://community.appian.com/thread/149811?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 06:52:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:626851b9-2b45-4434-8260-c2ad39d9a19a</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;you can use append() function if you want t add at the end of list always or use insert function if you want to insert at specific indices/index&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;insert({1,2,3},{4,5,6},4)

append({1,2,3},{4,5,6})&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update a object without a new variable.</title><link>https://community.appian.com/thread/149810?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 06:19:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:69f148b4-6107-48b2-9db5-e50d0c85b9de</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian expressions follow a functional paradigm. Variables are immutable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update a object without a new variable.</title><link>https://community.appian.com/thread/149809?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 06:09:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b66efce5-86b6-4511-a42c-a1f01576db7b</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;In Appian Variables are designed to be permanent once created - you can&amp;#39;t alter them after initialization. To make changes, you must build a brand new variable that incorporates your modifications while leaving the original intact.&lt;br /&gt;Hope you are expecting this when you want to append list...&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!originalList: { 1, 2, 3, 4 },
  local!listToAppend: { 5, 6, 7, 8, 9, 10 },
 { local!originalList, local!listToAppend }
)


&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>