<?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>can we pass constant to process model as process parameter?</title><link>https://community.appian.com/discussions/f/general/39112/can-we-pass-constant-to-process-model-as-process-parameter</link><description>I want to create a generic process model for update constant. I used update constant smart service as it required constant as input which is of type content constant. so i want to pass constant as process parameter. 
 is it possible or is there any other</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: can we pass constant to process model as process parameter?</title><link>https://community.appian.com/thread/148142?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 13:35:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:082d8e88-953c-4fb3-ac5a-d3ca5ca6dded</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I echo Mathieu&amp;#39;s warning that it&amp;#39;s a good idea to not update general-use constants procedurally, except in rare special cases where you have a strong reason.&amp;nbsp; I would point out, though, that the modern version of the Update Constant service actually does have a way to turn off &amp;quot;new versions&amp;quot;, i.e. you can force a straight-up overwrite, which could be useful for constants that act merely as flags / toggles, where no version history would ever be relevant or useful.&lt;/p&gt;
&lt;p&gt;A while ago I figured out a way to update constant by name (if you have a way of passing a valid constant name into your subprocess) - this uses a combo of tricks to look up the constant&amp;#39;s ID (note this requires at least one plugin), and the ID is passed to the smart service in lieu of a direct reference to the constant.&amp;nbsp; Keeping the new data type in line with the constant you&amp;#39;re updating will be up to you - use at your own risk i guess &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f937.svg" title="Shrug"&gt;&amp;#x1f937;&lt;/span&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;extract(
  getcontentdetailsbyuuid(
    getconstantorruleuuidbyname(&amp;quot;TEST_CONST_FOR_UPDATE&amp;quot;)
  ),
  &amp;quot;Id: &amp;quot;,
  &amp;quot;, Parent:&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we pass constant to process model as process parameter?</title><link>https://community.appian.com/thread/148128?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 10:01:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f4480fb-6cb6-4dd7-b515-000c632c7829</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;I would as a general rule avoid updating constants and would suggest using a database field instead. Updating a constant creates a new version and having many versions of an object can cause performance issues down the line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we pass constant to process model as process parameter?</title><link>https://community.appian.com/thread/148127?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 09:48:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e32a36f4-d5e9-4557-a760-6cfebc4e1241</guid><dc:creator>VarunTejaGurrapu</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/sanjivania497535"&gt;sakshi97&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;When you try to pass as mentioned you will get Null as Constant ID in the Update Constants inputs.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1747302381666v2.png" alt=" " /&gt;&lt;br /&gt;&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/pastedimage1747302404199v3.png" alt=" " /&gt;&lt;br /&gt;&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/pastedimage1747302357531v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;So It&amp;#39;s not possible to do that thing!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we pass constant to process model as process parameter?</title><link>https://community.appian.com/thread/148126?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 07:40:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a7e5a976-65a6-449b-a010-413c2e424ae8</guid><dc:creator>Vyshnavi Naripeddi</dc:creator><description>[quote userid="293561" url="~/discussions/f/general/39112/can-we-pass-constant-to-process-model-as-process-parameter"]i want to pass constant as process parameter.[/quote]
&lt;p&gt;There is no variable type called content constant, so its not possible&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we pass constant to process model as process parameter?</title><link>https://community.appian.com/thread/148125?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 07:31:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c73456aa-a017-4196-8bde-5867619731b2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;No, passing a reference to a constant as a process variable is not supported. Making this a generic process will not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>