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.
UserEvent Script-get values for button
HI There
I have a userevent script that is supposed to trigger a suitelet.
To do this, I have a button generated by the userevent that calls the suitelet.
This is userevent script correctly passes the id of the record that I am on (when the button is pressed).
However, I can't get the other field values to pass across as parameters.
Can you see where my script is wrong:
/**
* @NApiVersion 2.x
* @NScriptType UserEventScript
*/
define(["N/url"], function (url) {
function beforeLoad(context) {
try {
if (
context.type == context.UserEventType.CREATE ||
context.type == context.UserEventType.EDIT
) {
var recCurrent = context.newRecord;
} else {
var recCurrent = context.oldRecord;