good morning/afternoon/evening all. i have this v...
# suitescript
t
good morning/afternoon/evening all. i have this variable in the getInputData section of a map/reduce script
Copy code
var recordParam = record.load({
            type: 'customrecord_supported_record_types',
            id: runtime.getCurrentScript().getParameter("custscript_record_type")
        }).getValue('custrecord_record_name');
but when the script runs i get
"name":"SSS_MISSING_REQD_ARGUMENT","message":"load: Missing a required argument: id",
it ran fine outside of the map/reduce if i tried it on a normal debug script, but dont know why its causing issues now