Skip to main content

Questions tagged [unique]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
90 views

How can I get guest user’s unique visitor ID (UVID)?

There is a method UserInfo.getCurrentUvid() which per documentation is supposed to return guest user’s unique visitor ID (UVID), however, it returns null for us when we try to open public site or ...
Patlatus's user avatar
  • 17.5k
0 votes
1 answer
46 views

Compare 2 Lists of same sobject and store the unique records in a list

I have 2 List<Sobject> one contains existingRecordsList and other updateRecordList. existingRecordsList = (Account:{abc__c=a0o7a000,xyz__c=a0o5r000, id =a0o5r000002GaHhAAK}) updateRecordList = ...
Raham's user avatar
  • 43
1 vote
1 answer
863 views

sObject.clone() - Does this method clone values in fields marked as Unique?

Given the below Account field: foo__c Text(255) (External ID) (Unique Case Insensitive) If we use the following in Apex code, does a value in the foo__c field get copied over to the newly cloned ...
parkerbbrown's user avatar
0 votes
1 answer
66 views

I have Protected Custom Metadata Object Relationship field and I can't make it Unique

I have Protected Custom Metadata Object Relationship field and I can't make it Unique. When I try to make it unique and generate a new validated package version, I receive the following error: ...
Patlatus's user avatar
  • 17.5k
0 votes
1 answer
370 views

SOQL check if unique value exists and throw error message

I want to check if all the records have the same values for "Group__c" field and throw a message if the values are different. Example data: If all the records are of the same group(Group-A ...
Jenina's user avatar
  • 35
0 votes
1 answer
388 views

Way to migrate data in bulk which reference record types

Record Type standard object lacks Unique External Id field and doesn't allow to create a custom Unique External Id field, which brings a challenge to migrate data in bulk which reference record types, ...
Patlatus's user avatar
  • 17.5k
2 votes
1 answer
3k views

Display unique count of account states in dashboard component

I would like to have a dashboard component that shows the # of unique states that we have accounts in. I can get the account by using the unique count feature in a report, but I would like to display ...
Michele Kleinhomer's user avatar
-1 votes
1 answer
168 views

Check constraint in master-detail [closed]

Is it possible to implement 1:1 relation between master and detail. I'm not able to create neither rollup summary on master nor trigger on detail
pincet's user avatar
  • 943