aaron_tekton
10/30/2019, 2:03 PMNApiVersion of 2.xdbarnett
10/30/2019, 2:04 PMaaron_tekton
10/30/2019, 2:05 PMaaron_tekton
10/30/2019, 2:05 PMaaron_tekton
10/30/2019, 2:08 PMreptar
10/30/2019, 2:20 PMaaron_tekton
10/30/2019, 2:32 PMaaron_tekton
10/30/2019, 2:32 PMdbarnett
10/30/2019, 2:35 PMerictgrubaugh
10/30/2019, 3:03 PMerictgrubaugh
10/30/2019, 3:04 PMaaron_tekton
10/30/2019, 3:04 PMaaron_tekton
10/30/2019, 3:05 PMaaron_tekton
10/30/2019, 3:05 PMUserID: runtime.getCurrentUser().id which allows me to get the User ID by just typing _Ext.UserID instead of runtime.getCurrentUser().id. I do this for a number of things and it’s purely a quality-of-life improvement. The error is stating that my runtime module isn’t available when it’s creating the return object.erictgrubaugh
10/30/2019, 3:06 PMreturn of a module is outside any entry point callstackaaron_tekton
10/30/2019, 3:06 PMaaron_tekton
10/30/2019, 3:07 PMerictgrubaugh
10/30/2019, 3:07 PMerictgrubaugh
10/30/2019, 3:07 PMjkabot
10/30/2019, 4:03 PMjkabot
10/30/2019, 4:04 PMAll SuiteScript API Modules are unavailable while executing your define callback, it probably shouldn't have worked in 2.0 eithererictgrubaugh
10/30/2019, 4:13 PMerictgrubaugh
10/30/2019, 4:13 PMruntime wouldn't actually be invoked until you actually asked for the property during a script executionerictgrubaugh
10/30/2019, 4:21 PMreturn {
...,
get UserID() { return runtime.getCurrentUser().id; }
...
};aaron_tekton
10/30/2019, 4:39 PMerictgrubaugh
10/30/2019, 4:49 PMerictgrubaugh
10/30/2019, 4:49 PMExt.UserID from within an entry point callstack. If not, you'll still run into the same error I thinkaaron_tekton
10/30/2019, 5:26 PMaaron_tekton
10/30/2019, 5:27 PMaaron_tekton
10/30/2019, 5:27 PMerictgrubaugh
10/30/2019, 5:28 PM