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:
Version (include the version you are using, if applicable):
Tagged:
0