Script to find the line number using a field value in a sublist.

The following code can be used to return the line number for the first occurrence of a field value in a sublist.

  let priceLevelLineNumber = itemRec.findSublistLineWithValue({
                        sublistId: priceLevelID, // sublist id
                        fieldId: 'pricelevel', //fieldId
                        value: WSP_PRICE_LEVEL //value of a field
                    });

Leave a comment

Your email address will not be published. Required fields are marked *