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

Return List of Rows by Groovy

Summary:

Hi experts,

I am trying to return list of rows by groovy, i was trying this code:


Content (required):

Hi experts,

I am trying to return list of rows by groovy, i was trying this code:

def vo = newView('MY_BO');

addBindVariable(vo,'field_name','Text');

vo.appendViewCriteria("field_name = :input")

setBindVariable(vo,'field_name',pim)

// 4. Process the results

if (vo.hasNext()) {

   def row = vo.next()

  // Do something here with the current result row

  return row.first();

}


Then, I want to use the list in Email Notification.


I was watching this tutorial:

https://youtu.be/Fd6Nq8KZbSY

Version (include the version you are using, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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