How to automatically change Class after Customer i...
# general
m
How to automatically change Class after Customer is selected Published 02/28/2018 11:21 PM | Updated 06/28/2018 07:27 AM | Answer Id: 69468 Create Script that will automatically change the class after the customer is selected.(For this customer Class is unique for every customer) Create Script Customization > Scripting > Scripts > New Apply function to Post_sourcing Deploy Script> Apply to Customer Record Sample Script function Payment_Class(type, name, linenum){ if(name == 'customer'){ var id = nlapiGetFieldValue('customer'); nlapiSetFieldValue('class',nlapiLookupField('customer', id, 'custentity9'))