jen
04/04/2022, 4:44 PMcontext.form.clientScriptModulePath = 'SuiteScripts/2.0/client/cl_enquiry_ss2.1.js';
I get this error:
You do not have permission to load this module SuiteScripts/2.0/client/cl_enquiry_ss2.1.js, it has an @NModuleScope of SameAccount which restricts its availability to customization objects created in account(s)
However, cl_enquiry_ss2.1.js specifies @NModuleScope Public
as follows:
/**
* cl_enquiry_ss2.1.js
*
* @NApiVersion 2.1
* @NModuleScope Public
*
* last modified 2022-03-16 JB
*/
What am I missing here?battk
04/04/2022, 5:19 PMjen
04/04/2022, 6:13 PM@NModuleScope Public
battk
04/04/2022, 6:28 PMjen
04/04/2022, 7:42 PM@NModuleScope Public
and how do I fix this?battk
04/04/2022, 7:56 PMjen
04/04/2022, 8:06 PMbattk
04/04/2022, 8:07 PMjen
04/04/2022, 8:08 PMbattk
04/04/2022, 8:12 PMjen
04/04/2022, 8:52 PMbattk
04/04/2022, 9:06 PMjen
04/04/2022, 10:19 PMbattk
04/04/2022, 10:36 PMjen
04/06/2022, 4:13 PMruntime.executionContext == 'USERINTERFACE'
and voila, no more weird error messages in my Script Execution Logs.