A Suitelet to write user and session information for the currently executing script to the response: Solution: /** * @NApiVersion 2.x * @NScriptType Suitelet */ // This script writes user and session information for the currently executing script to the response. define([‘N/runtime’], function(runtime) { function onRequest(context) { var remainingUsage = runtime.getCurrentScript().getRemainingUsage(); var userRole = runtime.getCurrentUser().role;… Continue reading Write User and Session Information to the Response
Tag: remaining usage
Function to get the remaining usage
Function to get the remaining usage