Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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