I am working with a Features Service in ArcGIS Pro. This Feature service is reached through our proxy which does the authentication. The geodatabase behind the Feature Service is used by our current system which uses the old replication mode. So I don't think I cant disable editor tracking on the tables themselves.
My proble is, whenever I make changes to a field using my features service code, both the CreatedBy and ModifiedBy show up as Esri_Anonymous. I have tried to explicitly set these to the USERNAME, but it always goes back to Esri_Anonymous.
<SPAN class="comment token">//This will set the username, but will always revert to Esri_Anonymous</SPAN>
Inspector<SPAN class="punctuation token">[</SPAN><SPAN class="string token">"UpdatedBy"</SPAN><SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> <SPAN class="string token">"UserNAME"</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN></SPAN>
How do I go about setting the UpdatedBy and CreatedBy fields for my Feature Service in my ArcGIS Pro SDK code?