Josh Godfrey
07/12/2022, 9:43 PMABC custom role
3. UE Script defines a custom module in my file cabinet ex. define(['N/record', 'N/runtime', 'N/search', 'N/https', 'SuiteScripts/Mosaic/PLX_CM_Common.js'],
4. In the CM, I have a callback function that creates custom record type
I would assume when* the original UE script calls the CM, it would use the same permissions applied to the UE Script? But instead I'm getting a permission error (ABC Custom Role needs a higher level permission on this custom record type
)
I don't get this error when I trigger the UE script in my admin role though.Josh Godfrey
07/12/2022, 9:45 PMbattk
07/12/2022, 10:18 PMJosh Godfrey
07/13/2022, 4:08 PMbattk
07/14/2022, 1:04 AMbattk
07/14/2022, 1:04 AMJosh Godfrey
07/14/2022, 2:21 PM{PLX_CM_Common.js}
{
"type": "error.SuiteScriptError",
"name": "INSUFFICIENT_PERMISSION",
"message": "Permission Violation: You need a higher permission for custom record type PLX Failed Sync Logs to access this page. Please contact your account administrator.",
"stack": [
"Error\n at suitescript/resources/javascript/record/recordImpl.js:40:12\n at Function.createRecord_raw (suitescript/resources/javascript/record/recordImpl.js:38:24)\n at suitescript/resources/javascript/record/recordImpl.js:26:29\n at Object.createRecord (suitescript/resources/javascript/record/recordImpl.js:24:24)\n at createRecord (/SuiteScripts/Mosaic/PLX_CM_Common.js:501:32)\n at /SuiteScripts/Mosaic/PLX_CM_Common.js:307:21"
],
"cause": {
"type": "internal error",
"code": "INSUFFICIENT_PERMISSION",
"details": "Permission Violation: You need a higher permission for custom record type PLX Failed Sync Logs to access this page. Please contact your account administrator.",
"userEvent": null,
"stackTrace": [
"Error\n at suitescript/resources/javascript/record/recordImpl.js:40:12\n at Function.createRecord_raw (suitescript/resources/javascript/record/recordImpl.js:38:24)\n at suitescript/resources/javascript/record/recordImpl.js:26:29\n at Object.createRecord (suitescript/resources/javascript/record/recordImpl.js:24:24)\n at createRecord (/SuiteScripts/Mosaic/PLX_CM_Common.js:501:32)\n at /SuiteScripts/Mosaic/PLX_CM_Common.js:307:21"
],
"notifyOff": false
},
"id": "",
"notifyOff": false,
"userFacing": true
}
Josh Godfrey
07/14/2022, 2:21 PMJosh Godfrey
07/14/2022, 2:22 PMbattk
07/14/2022, 5:25 PM