-
How to apply uniqueness on Junction object in Salesforce?
Hii All,
I have a junction object C of A and B.
I found out that I can create multiple entries of A and B in Object C - this is wrong, as in my case, each combination of A and B should appear only once in Junction object C. The second time, someone will try to enter A and B as a new entry in C - it should fail.
How can I enforce this?
Log In to reply.
Popular Salesforce Blogs
![Triggers in Salesforce](https://images.forcetalks.com/wp-content/uploads/2021/10/22143337/Triggers-in-Salesforce.jpg)
Triggers in Salesforce - Get Started
What is a Trigger? A Trigger is an Apex script, which we can use in many situations. The use of trigger is, it will help…
![Collections In Apex](https://images.forcetalks.com/wp-content/uploads/2020/04/17191320/Collections-In-Apex.png)
Introduction To Collections In Apex | Salesforce Developer Guide
INTRODUCTION: Collection: In general means 'Group of things'. Basically there are 4 types of collection which are as- List Set Map Array. But here we…
![How to make a Salesforce Org and Your Domain?](https://images.forcetalks.com/wp-content/uploads/2023/02/21134011/Blog-banner-Sep-2022-32.png)
All You Need to Know to Make a Scratch Org and Your Domain
How to Make your Domain? Change the domain of dev org to my domain: To change the domain, you first have to create your domain.…
Popular Salesforce Videos
A Closer Look at Revenue Cloud | Salesforce
Watch this demo to learn how Revenue Cloud can help you take control of revenue growth across every channel including direct sales, partners, and digital…
How to Start Your Career in Salesforce?
Are you still confused about "How to start your career in Salesforce?" Get your answer now! We hope you enjoy the video and it helps…
Introduction to Creating and Using Salesforce Reports
Every Salesforce user can benefit from working with Salesforce Reports. We often say that one of the best Salesforce features is that "...even mere mortals…