Ashley Millen
Ashley Millen

Reputation: 25

SuiteScript 2.0 Map Reduce Script Parameters

I have written a map/reduce script to check a box on thousands of journal entry records. I have a dynamic parameter that passes in journal status when script is run. In suitescript 1.0 I grab script parameters off context object.

I'm sure it is similar in 2.0, but I can't seem to find it on context object in 2.0.

Upvotes: 0

Views: 3514

Answers (1)

bknights
bknights

Reputation: 15367

import N/runtime

then

var me = runtime.getCurrentScript();
var paramVal = me.getParameter({name:'custscript_my_script_param'});

Upvotes: 5

Related Questions