What's new in Customer Journeys?

Connect and learn more!
Return List of Rows by Groovy — Cloud Customer Connect
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

Accepted answer
32
Views
5
Comments

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!