SEARCH THE COMMUNITY

Find an existing answer

1 results for “RecordSortedList”

CommunityHow do I implement a custom comparer/hash for RecordSortedList/Set/Map when keys are EDTs or enums in D365FO X++?I'm building a lookup using `Map`/`Set` (and in one place `RecordSortedList`) in X++ where the key type in the collection is an EDT (or an enum EDT). However, equality/lookup behavior is inconsistent: sometimes `map.exists(key)` returns false even though I can find a record with