Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Don't miss out on our Weekly Quiz! You only have until April 11, 2PM EST to comment your answers and earn rewards! Click here for more details.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?

How to pass script parameters between getinput and map?

edited Oct 13, 2023 1:11AM in Ask A Guru 3 comments

Hi There

I have the following map reduce script:

 *@NApiVersion 2.x
 *@NScriptType MapReduceScript
define(["N/record", "N/search", "N/runtime"], function (
) {
  function getInputData() {
    try {
      var scriptObj = runtime.getCurrentScript();
      var recordId = scriptObj.getParameter("custscript_recordid");
      var picked = scriptObj.getParameter("custscript_picked_status");
      var packed = scriptObj.getParameter("custscript_packed_status");
      var shipped = scriptObj.getParameter("custscript_shipped_status");
        " picked: " + picked + " packed: " + packed + " shipped: " + shipped

      var salesOrderid = recordId;
      log.debug("recordid", salesOrderid);
      var salesorderSearchObj = search.create({
        type: "salesorder",

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!


Community Whiz

Quarter 1 (Jan-Mar 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders