function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dan NorfleetDan Norfleet 

Duplicate/Matching Rule work with Visual Force Page

We are trying to add logic to prevent duplicate items on orders.  It was suggested we use a Duplicate / Matching rule on the order item object.  Unfortunately the Visual Force page we have where the user enters items does not seem to use the Duplicate / Matching rule because we are still able to enter duplicates with no message or error.

Is there something that needs to be done to enable the Visual Force page to utilize the rules?

Dan
Best Answer chosen by Dan Norfleet
Harsh Singh 7Harsh Singh 7
To stop duplicate you need to write the trigger

All Answers

Harsh Singh 7Harsh Singh 7
To stop duplicate you need to write the trigger
This was selected as the best answer
Dan NorfleetDan Norfleet
Harsh Singh - thank you for the response.  By writing a trigger - are you indicating NOT using the Duplicate / Matching rule to stop duplicates - and code the validation through APEX or something?  Or is there a way to enable the Duplicate / Matching rule on the Visual Force Page through a Trigger?

Thanks for any clarification you can provide.

Dan