Skip to main content
In my custom object name Loan_Judgment_Association__c I have 2 fields below

 

Judgment__c   :   (Master-Detail(Judgment) – Master detail relationship from Loan Judgment Association custom object to  judgment custom object.

 

Loan__c   :     Master-Detail(Loan) Master detail relationship from Loan Judgment Association custom object to  Loan custom object.

 

REQUEST

 

I am requesting when a user selects a loan and a judgment and saves the record, a Validation Rule will prevent the user from selecting the same loan and judgment again. Vice versa, if a user selects a judgment and loan and saves the record, a Validation Rule will prevent the user from selecting the same Judgment and loan again.

 

Example 1: If someone selects a loan Name Civian test (a00i000000MttQ2) and selects a Judgment  name test (001i000000rgN1c) and saves the record, the Validation Rule will prevent the  user to save another record using the same loan name Civian test (a00i000000MttQ2) and the same Judgment name test (001i000000rgN1c).

 

Example 2:  If someone selects a Judgment  name test (001i000000rgN1c) and selects a loan Name Civian test (a00i000000MttQ2) and saves the record, the Validation Rule will prevent the  user to save another record using the same loan name Civian test (a00i000000MttQ2) and the same Judgment name test (001i000000rgN1c).

 

I hope you SF Gurus could help me with this one.

 

Regards,

 

Forrest
18 answers
  1. Jul 9, 2014, 6:50 PM
    No problem at all @Forrest.....You can go on with questions as much as you want....

     

    So unfortunately that isn't possible. As I already mentioned, this is actually hacking around the Platform Feature so we've restrictions and not much options. 

     

    The other way around is to setup an Apex Trigger which I feel may not be really needed at this point of time and with WFRs you can easily manage them since it is just clicks and not code!

     

    But I hope it helps!
0/9000