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

How to refresh child revenue items rows for Opportunity

edited Aug 10, 2018 10:03PM in Sales 4 comments

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?  

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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