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

Function to run in schedule custom groovy object functions does not work

edited Jun 1, 2024 3:39PM in Sales 1 comment

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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