Alli Deacon
03/30/2021, 4:49 PMvar mapReduceScriptTask = task.create({
taskType: task.TaskType.MAP_REDUCE,
scriptId : 'customscript_gb_bulk_update',
deploymentId : 'customdeploy_gb_transaction_bulk_update',
params : {
"custscript_requestbody" : request['recList']
}
});
However, using log.debug() I'm seeing that Parameter empty on the MapReduce side here:
function getInputData(context){
var post_body = runtime.getCurrentScript().update_post.getParameter({name: 'custscript_requestbody'})
log.debug({
title:'In Get Input data Stage',
details: update_post});
Any help is appreciated!Sciuridae54696d
03/30/2021, 4:52 PMfunction getInputData(context){
var post_body = runtime.getCurrentScript().update_post.getParameter({name: 'custscript_requestbody'})
log.debug({
title:'In Get Input data Stage',
details: update_post});
seems like all sort of wrong here? you're not logging post_body, and why are you even doing
runtime.getCurrentScript().update_post.getParameter({name: 'custscript_requestbody'}
surely should be more like
runtime.getCurrentScript().getParameter({name: 'custscript_requestbody'})
Sciuridae54696d
03/30/2021, 5:18 PMAlli Deacon
03/30/2021, 6:13 PMAlli Deacon
03/30/2021, 9:43 PMvar post_body = runtime.getCurrentScript().getParameter({name: 'custscript_requestbody'})
log.debug({
title:'In Get Input data Stage',
details: post_body});
The Log shows up, but the details are blank. Any ideas what I may try?battk
03/31/2021, 12:36 AMbattk
03/31/2021, 12:37 AMbattk
03/31/2021, 12:37 AMAlli Deacon
03/31/2021, 12:38 PM