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

Header EFF to Line level EFF

Received Response
edited Dec 15, 2020 3:25PM in Order Management 8 comments



 I Need help in modifying the below query for copying header EFF to line level EFF. We need to add a condition in the code where in if the user updates the line level EFF after the header value is copied and saves the record, then header value should not override the line value after we save the record.


def flexfieldContext = header.getOrCreateContextRow("End Customer Information");
def EFFHeader = flexfieldContext.getAttribute("customerPhone");
def lines = header.getAttribute("Lines");
while( lines.hasNext() ) {                                 
def line =;   
def flexfieldContextLine = line.getOrCreateContextRow("End Customer Information");                           
def EFFLine = flexfieldContextLine.getAttribute("customerPhone");                        
flexfieldContextLine.setAttribute("customerPhone", EFFHeader)

Howdy, Stranger!

Log In

To view full details, sign in.


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