borncorp

Untitled

Jan 6th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var CPRecord=RECORDMODULE.load({type: RECORDMODULE.Type.CUSTOMER_PAYMENT, id: 3382, isDynamic: false,});
  2.     var lineCount = CPRecord.getLineCount("apply");
  3.    
  4.     for (var i = 0; i < lineCount; i++) {
  5.         var isApplied = CPRecord.getSublistValue({ sublistId: 'apply', fieldId: 'apply', line: i });
  6.         if(isApplied){
  7.             log.debug('Applied found!', CPRecord.getSublistValue({ sublistId: 'apply', fieldId: 'internalid', line: i }));
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment