<?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 constant programmatically</title><link>https://community.appian.com/discussions/f/general/19257/how-to-update-a-constant-programmatically</link><description>I have a list of constants and want to update them all one at a time. I&amp;#39;m using the smart service to update constants but it seems to require me to manually specify the constant to update. 
 I tried doing the following. 
 
 In my form I have the data</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to update a constant programmatically</title><link>https://community.appian.com/thread/75664?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 12:36:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:07849dd0-6316-4778-abba-639109348b2b</guid><dc:creator>Jose H.</dc:creator><description>&lt;p&gt;I ended up just saving the data on the database instead of using constants&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update a constant programmatically</title><link>https://community.appian.com/thread/75653?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 02:15:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3979422f-dbb0-47f3-a1fd-3a7e66dd3475</guid><dc:creator>legotx</dc:creator><description>&lt;p&gt;The only think I can think of is using the&amp;nbsp;&lt;strong&gt;Update Constant Smart Service&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1595988951014v1.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;However,&lt;/strong&gt;I couldn&amp;#39;t find a function to run this from an expression.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update a constant programmatically</title><link>https://community.appian.com/thread/75388?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 14:05:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38f02bab-b1b7-4882-837e-e2d821eb5f8a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;ve done something like this before, and without seeing your full code (and without access to my previous code at the moment) I&amp;#39;m not sure what the disconnect might be, but I&amp;#39;m fairly sure that it&amp;#39;s possible to do this with the right combination of plug-ins and finesse.&lt;/p&gt;
&lt;p&gt;Just to double-check, and this probably isn&amp;#39;t it, but FYI your first &amp;quot;consName&amp;quot; has a leading space in its value - that might(?) be throwing something off.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1594821918618v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>