Hello, I am working on my first SuiteScript and am not able to figure out why the code below returns “undefined” for var wo. This ClientScript is called from a UserEventScript that creates a button on the Work Order record. When all the currentRecord.CurrentRecord object Methods I tried returned “undefined” I assumed the current record was not being passed from the UserEventScript. I then defined var woId using Property “id” of currentReocrd.CurrentRecord and it returned the correct internal ID. In this first phase, I am just trying to pass various work order field values to the ui alert, before moving on to the next phase and hopefully sending them via xml to a label printer. The ui alert box precedes the code.
I spent the equivalent of a couple of days on this and appreciate any help in figuring out what I am doing wrong.
Thanks, John