how can I schedule to mass create work orders that...
# general
s
how can I schedule to mass create work orders that have a reorder points
w
A Map/Reduce Script you can schedule and is a perfect fit to create those work orders in bulk.
s
how would i create the search for the items that need to create work order
im trying to mass-create work order via map/reduce is this correct way to to set the values ?
Copy code
var workorder = record.create({
      type: record.Type.WORK_ORDER,
      defaultValues: {
        subsidiary: 2,
      },
      //
    });

    workorder.setValue({ fieldId: "assemblyitem", value: id });
    workorder.setValue({ fieldId: "quantity", value: qty });
    //top inv data
b
what issues are you having?