While Null now works in arcade field calculations on Pro 2.5, it still does not work in Attribute Rules while using the edit keyword and update.
Attribute rule dictionary keywords—Geodatabases | Documentation
<SPAN class="keyword token">return</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="string token">"result"</SPAN><SPAN class="operator token">:</SPAN> $feature<SPAN class="punctuation token">.</SPAN>assetid<SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"edit"</SPAN><SPAN class="operator token">:</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="string token">"className"</SPAN><SPAN class="operator token">:</SPAN> <SPAN class="string token">"electricdistributionassembly"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"updates"</SPAN><SPAN class="operator token">:</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="string token">"objectID"</SPAN><SPAN class="operator token">:</SPAN> feature_objectid<SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"associationType"</SPAN><SPAN class="operator token">:</SPAN> Null
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">]</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">]</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>The above code will not work. It returns a what I am guessing is an empty field. It does not work on strings or dates.
I need a simple attribute rule that updates a field to "Something" on insert/update and to <Null> on insert/update on "Something Else"
My code works except that there is no way to return Null using Attribute Rules & Arcade. You can return a string, date or 0 (in the case of dates 12/30/1899).
I have set to Null and tried to set it to a field that is Null.