How to refresh child revenue items rows for Opportunity
Content
I have a use case where I want to refresh child product lines for the opportunity. I am using the following groovy script to refresh the Opportunity View object but it is not refreshing the child revenue items.
optyVO.findByKey(key(optyId),1);
optyVO.clearCache();
optyVO.executeQuery();
The following line is returning the ChildRevenue object but it is a RowIterator and does not have a executeQuery() method.
def newChildRevenueVO = ChildRevenue;
Does anybody know how to refresh the child records?
0