Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Record.load not work when you do currentRecord.get ?
Hello,
In my client script, when i do record load alone it's working fine same with rec.setValue and rec.save.
But when i put a currentRecord.get before all of my code, my record.load it's impossible why ?
Because when i put scriptContext.currentRecord; in other script it's working fine :(.
function calculBudget() {
var record = currentRecord.get();
var projectId = record.id;
log.debug("project", projectId);
log.debug("calculBudget", "appel via le button");
var rec = record.load({
type : 'customrecord_projet_budget_reel',
id : 2,
isDynamic : true,
});
log.debug("calculBudget", "record load");
rec.setValue({
fieldId : 'custrecord_budget_reel_frais_pers',
value : 15,
ignoreFieldChange : false