var context = nlapiGetContext(); if(context.getSubsidiary()!= '2') // 2 is internal ID subs return;