Contact Point Unique ID Groovy Custom Code
Good morning,
We want to make the Contact Point ConflictID field unique and non-repeatable, using Groovy code for this. But searching, we couldn't find how to do it.
The final idea is:
1) Avoid duplicates
2) If we eliminate the contact Point we can reuse the unique ID of that conflictID again.
I also attach an example of the code we wanted, but in the Address object. This is a Before Insert:
def vo = newView('Address');
def view_Criteria = newViewCriteria(vo);
def view_criteria_row = view_Criteria.createRow();
def view_condition1 = view_criteria_row.ensureCriteriaItem('Comments');
view_condition1.setOperator('=');
view_condition1.setValue(Comments);
0