<?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>Best practice in regards to creating environment specific constants</title><link>https://community.appian.com/discussions/f/best-practices/14567/best-practice-in-regards-to-creating-environment-specific-constants</link><description>Hello, we are using Appian 18.4. We have constants that are environment specific; for example, assume we have constant WSDL_FILE. 
 
 - DEV: wsdldevurl.com 
 - QA: wsdlqaurl.com 
 - prod: wsdlprodurl.com 
 Currently, if we refresh data from production</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Best practice in regards to creating environment specific constants</title><link>https://community.appian.com/thread/65320?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 23:16:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:064f1122-23f2-43b8-8f54-46284dbd5c85</guid><dc:creator>erickp</dc:creator><description>Good question Kevin. When we refresh from production to DEV, we are not exporting from production and importing back to DEV. I realize that if we were to do that, the environment specific functionality in constants (and other objects) would work just fine. We are basically taking a snapshot of the KDBs from production and moving them into DEV. We are copying kdbs from a nightly backup and copying into DEV, along with a matching database backup and copy of data from accdocs1, accdocs2 etc. Because we are copying the kdbs and not importing the applications, the environment specific process doesn&amp;#39;t work for us. I hope this makes sense.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best practice in regards to creating environment specific constants</title><link>https://community.appian.com/thread/65319?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 22:37:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7bcbc6b8-e787-407c-96f5-ae0938828f60</guid><dc:creator>Kevin Gajewski</dc:creator><description>Can you clarify what you mean by &amp;quot;...when we refresh from production to DEV&amp;quot;? Are you exporting your apps from production and importing them back to development? Are you snapshotting your entire system (engines and all) and using that?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best practice in regards to creating environment specific constants</title><link>https://community.appian.com/thread/65303?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 17:51:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a3b2dc83-5b3e-467c-bcf1-b3148e045728</guid><dc:creator>Mike Schmitt</dc:creator><description>&amp;gt;  This doesn&amp;#39;t help me because when we refresh from production to DEV, for example, the constant value in DEV will be updated with production value.&lt;br /&gt;
&lt;br /&gt;
That&amp;#39;s not how environment-specific constants work.  If you try this out for yourself, you will find that this functionality has been intentionally set up such that it does not overwrite the constant&amp;#39;s current value in the current environment even when importing the constant with a different value from another environment.  A better way to think of it is, the exported version doesn&amp;#39;t actually carry a value, so that for new imports you need to use the .properties file at least the first time to set it initially.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best practice in regards to creating environment specific constants</title><link>https://community.appian.com/thread/65302?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 17:20:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38092e27-ffb8-4413-b520-54885545c56b</guid><dc:creator>erickp</dc:creator><description>I had read that before but that is not exactly what I am looking for. My understanding was that import customization file was used just during the deployment process if, for example, a constant in DEV is = 1 but I want when the deployment to QA finishes, for the value to be updated to 2. This doesn&amp;#39;t help me because when we refresh from production to DEV, for example, the constant value in DEV will be updated with production value. Or am I wrong?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best practice in regards to creating environment specific constants</title><link>https://community.appian.com/thread/65301?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 17:16:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:867da02f-b24d-4226-90c4-b601653b201b</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;Have a look at the import customisation help pages: &lt;a href="https://docs.appian.com/suite/help/19.1/Application_Deployment_Guidelines.html#import-customization"&gt;docs.appian.com/.../Application_Deployment_Guidelines.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/19.1/Application_Deployment_Guidelines.html#environment-specific-constants"&gt;docs.appian.com/.../Application_Deployment_Guidelines.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>