Map Reduce getInput Data returning and array of se...
# suitescript
a
Map Reduce getInput Data returning and array of search results with this structure:
Copy code
[
   {
      RECID: "26755",
      RECNAME: "RECORD_NAME",
      SERVICE_DATE: "05/25/2021",
      CUSTOMER: "CUSTOMER_ID",
      CUSTOMER_MAINTENANCE: true,
      SALES_ORDER: "",
      SALES_ORDER_NUMBER: "- None -",
      TECHNICIAN: "TECH ID",
      TECHNICIAN_CONTRACTOR: "",
      TECHNICIAN_SALARY: true,
      LOCATION: "2",
      NON_BILLABLE: false
   }
]
k
Post your getInput function content
a
@Kevin Hoelzel That is my data returned by my search...
Copy code
return utils.getData();
Copy code
function getInputData() {

    return utils.getData();
}
k
@alien4u have you tried checking in Get input stage by assigning to variable
Instead of return directly
a
yep
something weird is happening but I don't know yet...
if I create a variable with objects inside it returns correctly,...
k
Totally weird, is it returning same data 4 times
what is that function getData() doing inside utils module
a
returning that array of objects you see below... I found and fixed the problem... Thanks.