Topic by Anand Mohan
Content
Hi,
I have a custom object 'Findings' and I have the 'Organization' primary object. They have a M:N relationship. One organization can be associated to many Findings and viceversa.
So I have a Relationship Custom Object 'Findings2Organization' that stores the relationship between the association of findings. It has the attributes
ID, FindingsID and Organization ID.
My requirement is : I need to restrict the creation of a Findings2Organization row 'OnSave' when the same combination of Findings-Organization has already been associated
Say, we have Findings A,B,C and Organization X,Y,Z
Findings2Organization: A-X is allowed only once. If a user tries to create another A-X an error msg needs to be thrown.
How can I achieve this using .NET Desktop Add-In? Or is there any other way?