Please enable JavaScript
Using Schema.getGlobalDescribe() and Schema.SObjectField, we can find all the Unique property enabled fields within an object in Salesforce. Blog Post: https://www.infallibletechie.com/2021/11/how-to-find-all-unique-fields-within.html