Questions tagged [unique]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
599 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
63 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
  • 16.4k
0 votes
1 answer
346 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
  • 25
0 votes
1 answer
327 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
  • 16.4k
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
163 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
  • 869