My Scenario is to restrict the user from creating the similar record(combination of two fields should not be same) in custom object.
My Idea is to use Java script API(Browser control), with this I can get the values from work space(action=create) and compare it with the previous record using ROQL and then showing the popup in ws.
My Problem is I cant use ROQL inside the java script.
Snippet of my code is attached here.
Kindly help me in this.