• RF Admin 7
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi
In my Account object has 2 record types 1) Customer 2) Vendor
Created one custom object(Trade Reference) with Account lookup and contact lookup and designed a custom form (vf page ) with Trade Reference fields
In that form When click on account look up field it display only Vender record type Records only it is done successfully
After when click on contact lookup it display only above selected account record related contacts only (i.e contacts should be under selected account related only ) it is done
Now my Requirement is
In account à Customer record type Record (not a vendor record) àdetail page has button (Application)
When click on Application button Form will be open (vf page) in that vf page account look up is displaying vendor records and contact also showing related account records
But when click on save button it display error message
  • Contact: Value does not exist or does not match filter criteria.
  • System.DmlException: Insert failed. First exception on row 0; first error: FIELD_FILTER_VALIDATION_EXCEPTION, Value does not exist or does not match filter criteria.: [Contact__c]
Account lookup field (Company Name) filter condition
Filter Criteria         Company Name: Account Record Type: Name EQUALS Accounts - Vendor
Filter Type             Required. The user-entered value must match filter criteria.
Active                    True

Contact lookup field (Contact) filter condition
Filter Criteria          Trade References: Company Name ID EQUALS Contact: Account Name ID
Filter Type              Required. The user-entered value must match filter criteria.
Active                    True