Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Contact Point Unique ID Groovy Custom Code

in Sales 6 comments

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); 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!