Questions tagged [unique]
The unique tag has no usage guidance.
8
questions
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 ...
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 = ...
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 ...
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:
...
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 ...
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, ...
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 ...
-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