<?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>Related to function..</title><link>https://community.appian.com/discussions/f/general/38149/related-to-function</link><description>I am just looking at this rule and find this unsupported function can anyone tell me that what is the behaviour of this function . reduce( update_unsupported(_,_,_), {}, {} ) what we can use instead of update_unsupported to remove (_,_,_)</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Related to function..</title><link>https://community.appian.com/thread/143580?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 14:29:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e145e37-eedc-4a0e-ba78-f9da35c75f74</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;if it&amp;#39;s old enough, there&amp;#39;s a chance that was the only way.&amp;nbsp; My point is, that one-by-one update is no longer necessary and probably isn&amp;#39;t useful for anything.&amp;nbsp; Other than making the code unreasonably confusing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Related to function..</title><link>https://community.appian.com/thread/143579?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 14:13:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b1dfb4b-8585-4f19-9ef9-471130ec1b84</guid><dc:creator>Ankush Sharma</dc:creator><description>&lt;p&gt;I think that by using the reduce function along with the update_unsupported function, we are merging the data and saving it to the fields one by one. Correct me if I&amp;#39;m wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Related to function..</title><link>https://community.appian.com/thread/143575?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 13:55:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b79de66f-0722-4a8e-bd8e-455f139ee76e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Well with a!update() it should be as simple as just calling it once:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!update(
  value: rule!TSW_.......(&amp;quot;&amp;quot;),
  index: {
    &amp;quot;ResidentYardiID&amp;quot;,
    &amp;quot;PropertyYardiID&amp;quot;,
    &amp;quot;Email&amp;quot;,
    &amp;quot;FirstName&amp;quot;,
    &amp;quot;HomeNumber&amp;quot;,
    &amp;quot;LastName&amp;quot;,
    &amp;quot;LeaseEndDate&amp;quot;,
    &amp;quot;LeaseStartDate&amp;quot;,
    &amp;quot;MobileNumber&amp;quot;,
    &amp;quot;OfficeNumber&amp;quot;,
    &amp;quot;Status&amp;quot;,
    &amp;quot;ReasonForMoveOut&amp;quot;,
    &amp;quot;MoveInDate&amp;quot;,
    &amp;quot;MoveOutDate&amp;quot;,
    &amp;quot;CreateDate&amp;quot;,
    &amp;quot;CreateUser&amp;quot;,
    &amp;quot;UpdateDate&amp;quot;,
    &amp;quot;UpdateUser&amp;quot;,
  },
  value: {
    &amp;quot;dd&amp;quot;,
    &amp;quot;dd&amp;quot;,
    &amp;quot;dd&amp;quot;,
    &amp;quot;dd&amp;quot;,
    &amp;quot;dd&amp;quot;,
    &amp;quot;ss&amp;quot;,
    &amp;quot;aa&amp;quot;,
    &amp;quot;fff&amp;quot;,
    &amp;quot;ff&amp;quot;,
    &amp;quot;ff&amp;quot;,
    &amp;quot;ff&amp;quot;,
    &amp;quot;ff&amp;quot;,
    &amp;quot;sss&amp;quot;,
    &amp;quot;ff&amp;quot;,
    now(),
    null,
    now(),
    null
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Related to function..</title><link>https://community.appian.com/thread/143574?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 13:52:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa00d17d-1ebe-4289-bd98-5184ed4335c9</guid><dc:creator>Ankush Sharma</dc:creator><description>&lt;p&gt;yeah you are right i have replaced the fucntion with update&amp;nbsp;&lt;br /&gt;&lt;br /&gt;we are currently updating one at a time&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1733925135234v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know it is right or not&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Related to function..</title><link>https://community.appian.com/thread/143573?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 13:45:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:997b8269-6496-473a-95be-85485fb3fb8e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;BTW:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1733924540936v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It seems at first glance whether this is doing similar to a!update or updateDictionary() and updating the fields named in the first array with the values in the final array.&amp;nbsp; I&amp;#39;m unclear why it&amp;#39;s using reduce() unless that&amp;#39;s somehow doing something more convoluted with the results of the query rule i.e. if it returns a list rather than a single value; i suppose maybe it&amp;#39;s stepping through the list of keys one at a time and replacing the values one at a time, which of course with the modern a!update() function should be totally unnecessary as it handles a list of replacement property names followed by a list of replacement values, and handles all of that inherently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Related to function..</title><link>https://community.appian.com/thread/143572?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 13:39:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b922549-301a-4159-8050-42ba7363970b</guid><dc:creator>Ankush Sharma</dc:creator><description>&lt;p&gt;I am trying to replace this function , Currently i am reducing and merging the dictionary data, so i just want to know what i can do better&lt;br /&gt;&lt;br /&gt;reduce(&lt;br /&gt; update_unsupported(_,_,_),&lt;br /&gt; cast(&lt;br /&gt; &amp;#39;type!{urn:com:appian:types}TSW_Resident&amp;#39;,&lt;br /&gt; rule!TSW_getResidentByYardiID(&amp;quot;t0020328&amp;quot;)&lt;br /&gt; ),&lt;br /&gt; merge(&lt;br /&gt; {&lt;br /&gt; &amp;quot;ResidentYardiID&amp;quot;,&lt;br /&gt; &amp;quot;PropertyYardiID&amp;quot;,&lt;br /&gt; &amp;quot;Email&amp;quot;,&lt;br /&gt; &amp;quot;FirstName&amp;quot;,&lt;br /&gt; &amp;quot;HomeNumber&amp;quot;,&lt;br /&gt; &amp;quot;LastName&amp;quot;,&lt;br /&gt; &amp;quot;LeaseEndDate&amp;quot;,&lt;br /&gt; &amp;quot;LeaseStartDate&amp;quot;,&lt;br /&gt; &amp;quot;MobileNumber&amp;quot;,&lt;br /&gt; &amp;quot;OfficeNumber&amp;quot;,&lt;br /&gt; &amp;quot;Status&amp;quot;,&lt;br /&gt; &amp;quot;ReasonForMoveOut&amp;quot;,&lt;br /&gt; &amp;quot;MoveInDate&amp;quot;,&lt;br /&gt; &amp;quot;MoveOutDate&amp;quot;,&lt;br /&gt; &amp;quot;CreateDate&amp;quot;,&lt;br /&gt; &amp;quot;CreateUser&amp;quot;,&lt;br /&gt; &amp;quot;UpdateDate&amp;quot;,&lt;br /&gt; &amp;quot;UpdateUser&amp;quot;,&lt;br /&gt; }, &lt;br /&gt; {&lt;br /&gt; &amp;quot;dd&amp;quot;,&lt;br /&gt; &amp;quot;dd&amp;quot;,&lt;br /&gt; &amp;quot;dd&amp;quot;,&lt;br /&gt; &amp;quot;dd&amp;quot;,&lt;br /&gt; &amp;quot;dd&amp;quot;,&lt;br /&gt; &amp;quot;ss&amp;quot;,&lt;br /&gt; &amp;quot;aa&amp;quot;, &lt;br /&gt; &amp;quot;fff&amp;quot;,&lt;br /&gt; &amp;quot;ff&amp;quot;,&lt;br /&gt; &amp;quot;ff&amp;quot;,&lt;br /&gt; &amp;quot;ff&amp;quot;, &lt;br /&gt; &amp;quot;ff&amp;quot;,&lt;br /&gt; &amp;quot;sss&amp;quot;,&lt;br /&gt; &amp;quot;ff&amp;quot;,&lt;br /&gt; now(),&lt;br /&gt; null,&lt;br /&gt; now(),&lt;br /&gt; null&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Related to function..</title><link>https://community.appian.com/thread/143571?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 13:23:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:118c662e-1e76-4dba-8ad7-64b3d316457d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;We&amp;#39;d need more context - where was this found and what does it seem to be doing?&amp;nbsp; I haven&amp;#39;t seen it myself, but there&amp;#39;s a chance it could be a reference to a pre-publication version of something like a!update(), which was only released relatively recently (in the long run).&amp;nbsp; But without more context it&amp;#39;s hard to say.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>