<?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>Know the base URL of the current environment</title><link>https://community.appian.com/discussions/f/general/24862/know-the-base-url-of-the-current-environment</link><description>Hello! 
 I wanted to know if anyone knows how to get the base url of the current environment, if there is any expression rule by default. 
 Greetings, Vicent.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Know the base URL of the current environment</title><link>https://community.appian.com/thread/96235?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 13:50:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93398a5b-b7f1-48c9-a0af-8b7dc36ea145</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="98523" url="~/discussions/f/general/24862/know-the-base-url-of-the-current-environment/96212#96212"]I found that with the formula &amp;quot;extract(linktodocument(0, &amp;quot;doc&amp;quot;), &amp;quot;&amp;quot;&amp;quot;&amp;quot;, &amp;quot;doc/&amp;quot;)&amp;quot; it is obtained dynamically[/quote]
&lt;p&gt;That&amp;#39;s the way I&amp;#39;ve seen before.&amp;nbsp; FWIW, this method still works but there&amp;#39;s no guarantee it won&amp;#39;t be removed / changed in the future without [much|any] notice; and also, I believe this was the method used before Environment Specific Constants were introduced (so, a &lt;em&gt;&lt;strong&gt;while&lt;/strong&gt;&lt;/em&gt; ago, now).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Know the base URL of the current environment</title><link>https://community.appian.com/thread/96212?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 09:13:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61b88c3c-20d4-4d02-a0d7-e6afb5a8f812</guid><dc:creator>vgarcmon</dc:creator><description>&lt;p&gt;I have opted for the solution you mention Mike, the idea is to have the URL of the environment to report it in a response of a POST method in a webAPI. I found that with the formula &amp;quot;extract(linktodocument(0, &amp;quot;doc&amp;quot;), &amp;quot;&amp;quot;&amp;quot;&amp;quot;, &amp;quot;doc/&amp;quot;)&amp;quot; it is obtained dynamically but it is deprecated. Thanks to both of you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Know the base URL of the current environment</title><link>https://community.appian.com/thread/96200?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 21:42:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ab99e61-bcd5-4809-b1f1-ea01ad559208</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Agreed with Mike that having a constant is probably the best way. I&amp;#39;m curious though - can you talk more about your use case? There definitely are some reasons why you might need the URL, but there are also a decent number of out-of-the-box links that might meet your use case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Know the base URL of the current environment</title><link>https://community.appian.com/thread/96189?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 15:38:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:19654dbc-052e-4af4-ba00-ed8ded6f2ceb</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Last I&amp;#39;ve checked, the &amp;quot;best practice&amp;quot; way to do this is to store the enviornment URL in a Constant.&amp;nbsp; There are other unsupported / less-supported workarounds that can do it programatically, but they&amp;#39;re pretty kludge-y in comparison with the elegant solution of a constant, unless *absolutely* needed for some reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>