Function to run in schedule custom groovy object functions does not work
Summary:
I'm trying to create a function that calls a web service to update a field in all Product records, but the function loops through the records infinitely. And the call time reaches the limit, there are around 100 products.
Code Snippet (add any code snippets that support your topic, if applicable):
This is my code.
What I need is to go through all the products only once for each one and call the service on each product to fill out the fields.
def vo = newView('Product');
def voc = newViewCriteria(vo)
def vor = voc.createRow()
def voi = vor.ensureCriteriaItem('Institucion_c')
Tagged:
0