superkumario64
06/15/2018, 10:48 PM/**
*@NApiVersion 2.x
*@NScriptType UserEventScript
*/
define(['N/log', 'N/search', 'N/https', 'SuiteScripts/repo/custommodules/OAuth2ClientLib', 'SuiteScripts/repo/custommodules/cf_config'],
function (log, s, https, cflib, cf_config) {
function afterSubmit(context) {
var rec = context.newRecord;
var category = rec.getText({ "fieldId": "category"});
if (category === "Affiliate"){
}
else if (category === "Licensee of Record") {
}
return true;
}
return {
afterSubmit: afterSubmit
}
});