<?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 field in databse using a!update</title><link>https://community.appian.com/discussions/f/rules/24307/how-to-update-field-in-databse-using-a-update</link><description>I have created expression rule to find data like {{changeid:&amp;quot;1234&amp;quot;,prioritystatus:null}} 
 
 now i want to update this list of dictionary using a!update how can i do that? i want to update that field prioritystatus. I am doing this by selection of one</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to update field in databse using a!update</title><link>https://community.appian.com/thread/93810?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 16:14:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:348f90d1-acf4-439b-aab3-243e09485a74</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. Did you check the documentation on how the saveInto parameter works? Please do that first. Then share you code and we will be able to support you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update field in databse using a!update</title><link>https://community.appian.com/thread/93809?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 16:09:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e41f6c4e-1192-4b7b-b036-d80e44515502</guid><dc:creator>dhavalp0001</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1650384530010v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have done as you said but it gives above error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update field in databse using a!update</title><link>https://community.appian.com/thread/93767?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 06:05:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a201d4d4-29dc-40fd-abaa-5e834f3a9a04</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a!map(local!clist[1])&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;does not work. Try the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(
  fv!item.status=69,
  a!update(
    data: local!clist[1],
    index:&amp;quot;prioritystatus&amp;quot;,
    value:local!pstatus1),
  &amp;quot;&amp;quot;
)
},&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update field in databse using a!update</title><link>https://community.appian.com/thread/93764?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 05:57:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:78649ee9-399d-40cc-bf03-790a6064ca87</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;small hint:&lt;br /&gt;&amp;nbsp;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1650347837469v1.png" alt=" " /&gt;&lt;br /&gt;Makes code waaaay better to read&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update field in databse using a!update</title><link>https://community.appian.com/thread/93763?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 05:15:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a28c32ab-0aba-445c-8dcf-cb804607f43b</guid><dc:creator>dhavalp0001</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1650345305483v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if(fv!item.status=69,a!update(data:a!map(local!clist[1]),index:&amp;quot;prioritystatus&amp;quot;,value:local!pstatus1),&amp;quot;&amp;quot;)},&lt;/p&gt;
&lt;p&gt;I have done this. I got above error.&lt;/p&gt;
&lt;p&gt;Please give me solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update field in databse using a!update</title><link>https://community.appian.com/thread/93754?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2022 18:08:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c0a22b00-b0fe-46c4-b351-30218e69e8e1</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are passing a list of items in your data. Try this way it will work&lt;/p&gt;
&lt;p&gt;a!update(&lt;br /&gt; a!map(changeid: &amp;quot;1234&amp;quot;, prioritystatus: null),&lt;br /&gt; &amp;quot;prioritystatus&amp;quot;,&lt;br /&gt; 1&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;If you want to update list of values use below logic&lt;/p&gt;
&lt;p&gt;a!update(&lt;br /&gt; {&lt;br /&gt; a!map(changeid: &amp;quot;1234&amp;quot;, prioritystatus: null),&lt;br /&gt; a!map(changeid: &amp;quot;4567&amp;quot;, prioritystatus: null)&lt;br /&gt; },&lt;br /&gt; &amp;quot;prioritystatus&amp;quot;,&lt;br /&gt; {1,2}&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>