AnsweredAssumed Answered

Can I set a unique index on a field in a hosted feature layer

Question asked by tom.rippetoe on Nov 2, 2017
Latest reply on Sep 12, 2019 by Angelia_Hagopian_onslow

I have a 'case number' field in our hosted feature layer that serves as a human-readable unique identifier. I need to prevent duplicate values being entered in that field (our current process is to run a query nightly to identify any duplicate entries).


Is there a way to set a unique index on that field? Or any other ways to guarantee uniqueness of values as the values are being entered? 


In a sort of worst case, is there a way to query the hosted feature layer before the new record (or edited record) is submitted? If the value exists, the user could be notified.


Thank you.