You need to sign in to do that
Don't have an account?
Moman192000
Validation Rule to dissallow duplicates(exact match) at point of entry in one field only
I have a very basic custom object in which I need to prevent duplicates(exact match). I cannot just use a "unique" value though, because in certain circumstances duplicates should be allowed. What I want to do is create a validation rule where if an "override" box is checked the rule will allow duplicates, but otherwise it won't. Can someone please help me with the code?
Initially I tried:
REGEX ( field , field) The only problem is that it checks itself and thinks every entry is a duplicate.
Please help!
Hope this helps.
Thank you for your feedback. It does not give me an option to add a new trigger. I see where triggers are, but cannot create a new one, and I do have APEX Author permission. Am I missing something?
Thanks again!
Matt
Search for the Eclipse IDE and the Force.com plugin - using these tools you'll be able to create the trigger offline and publish it to your site.
These triggers can also be created in your salesforce.com sandbox account. If you do not currently have a salesforce.com sandbox, you can create it by following the clickpath: Setup | Data Management | Sandbox
If there is no sandbox option, it may need to be enabled for your account. Contact your Account Executive or Salesforce Support to have this enabled.
Hope this helps.
For more info visit here- https://trailhead.salesforce.com/content/learn/modules/sales_admin_duplicate_management/sales_admin_duplicate_management_unit_2?trailmix_creator_id=strailhead&trailmix_slug=prepare-for-your-salesforce-administrator-credential
Thanks,
Harsh