<?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>Why am I getting this yellow warning message...</title><link>https://community.appian.com/discussions/f/general/21521/why-am-i-getting-this-yellow-warning-message</link><description>This is the error message I receive when attempting the &amp;quot;user&amp;quot; function not the a!user function: 
 
 The user function does not have a domain prefix....</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Why am I getting this yellow warning message...</title><link>https://community.appian.com/thread/84120?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 15:10:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a99f5721-39f3-48e0-9670-1932f782b3b3</guid><dc:creator>zdz</dc:creator><description>&lt;div class="Ar Au Ao" id=":225"&gt;
&lt;div class="Am Al editable LW-avf tS-tW tS-tY" id=":26p"&gt;Hi Anne &amp;amp; Mike -- I&amp;#39;d like to provide some additional context.&amp;nbsp;While the &lt;b&gt;fn!&lt;/b&gt; domain prefix exists, and can be used for system functions, we do &lt;b&gt;not &lt;/b&gt;enforce this as a strict best practice. We only enforce the best practice of using the &lt;b&gt;a!&lt;/b&gt; domain for rules (which is why, as you rightly pointed out Mike, autocomplete in the expression editor automatically adds &lt;b&gt;a!&lt;/b&gt;).&amp;nbsp;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;We recently had a &lt;b&gt;bug &lt;/b&gt;where if you used BOTH a system function (such as &lt;b&gt;user()&lt;/b&gt; or &lt;b&gt;document()&lt;/b&gt;) AND you also had a rule input or variable with the same name (such as r&lt;b&gt;i!user&lt;/b&gt; or &lt;b&gt;local!document&lt;/b&gt;), then Appian would flag the system function as missing a domain. I believe that this is what you were seeing Anne.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;We addressed and removed this bug with AN-186789, available in hotfix&amp;nbsp;21.2.385.0. &lt;/b&gt;As such, you should no longer see system functions called with parentheses underlined as requiring a domain.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why am I getting this yellow warning message...</title><link>https://community.appian.com/thread/84119?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 14:41:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d8a1c60-6616-4188-8115-2a848e2fdd45</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;function prefixes are not always required. The expression editor warning will typically flag a function when there is a local variable or rule input with the same name. That&amp;#39;s why &amp;#39;user&amp;#39; is flagged but &amp;#39;loggedInUser&amp;#39; is not&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why am I getting this yellow warning message...</title><link>https://community.appian.com/thread/84118?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 14:24:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c5847aa-a341-4a8e-8c66-23588a3d1545</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;...I also should have said that what you&amp;#39;re seeing is not an &amp;quot;error&amp;quot; but a &amp;quot;recommendation&amp;quot;. Appian has put investment into building implementation recommendations into the platform to help developers delivery quality applications. You can see these kinds of recommendations appearing in the Designer tools (like the Expression editor) and also in the &amp;#39;Health Dashboard&amp;#39; tab of the &amp;#39;Monitoring;&amp;#39; view within an Application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why am I getting this yellow warning message...</title><link>https://community.appian.com/thread/84115?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 13:45:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af9f1820-e822-4092-9d38-9ab96d92a18a</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Prefixing Appian constructs has always been informally a best practice (if that&amp;#39;s not an oxymoron! - I always insisted on it when peer reviewing code) and if you use the function picker (fx) in an Expression Editor that&amp;nbsp;&lt;strong&gt;does&lt;/strong&gt; append the relevant domain prefix (in 21.1)&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s missing in the context you call out then I&amp;#39;d assert that needs to be amended.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why am I getting this yellow warning message...</title><link>https://community.appian.com/thread/84114?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 13:40:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c97c0a87-6c60-48ab-9b83-10a9016dca4a</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="3520" url="~/discussions/f/general/21521/why-am-i-getting-this-yellow-warning-message/84113#84113"]and it&amp;#39;s now been deemed best practice to prefix Appian constructs with their respective domain[/quote]
&lt;p&gt;Since when?&amp;nbsp; If this were the case, I&amp;#39;d expect that using the auto-fill rule picker in an expression/interface would populate the &amp;quot;fn!&amp;quot; domain like the &amp;quot;a!&amp;quot; domain is autopopulated - and at least as of 21.2, it isn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;Also, FWIW, i&amp;#39;m unable to reproduce the warning message as seen in the initial screenshots here - I wonder if there might be some other issue at play?&amp;nbsp; Or do some people have ultra-early access to 21.3?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why am I getting this yellow warning message...</title><link>https://community.appian.com/thread/84113?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 13:26:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9dc15637-01fb-434d-a60e-d0ac2fa2b8b2</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;the user function does have a domain - it&amp;#39;s fn!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you write it as fn!user() that message will disappear.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Some context: these are the available domains:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1627478956232v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;...and it&amp;#39;s now been deemed best practice to prefix Appian constructs with their respective domain.&lt;/p&gt;
&lt;p&gt;(just realized fn! &lt;em&gt;doesn&amp;#39;t&lt;/em&gt; appear in the above list, which seems to me an oversight! - I&amp;#39;ll raise this with Appian Engineering)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>