var salesorderSearchObj = search.create({
   type: "salesorder",
   filters:
   [
      ["type","anyof","SalesOrd"], 
      "AND", 
      ["trandate","within","today"]
   ],
   columns:
   [
      search.createColumn({name: "internalid", label: "Internal ID"}),
      search.createColumn({name: "transactionnumber", label: "Transaction Number"}),
      search.createColumn({name: "tranid", label: "Document Number"}),
      search.createColumn({name: "otherrefnum", label: "PO/Check Number"}),
      search.createColumn({
         name: "altname",
         join: "customer",
         label: "Name"
      }),
      search.createColumn({
         name: "parent",
         join: "customer",
         label: "Top Level Parent"
      })
   ]
});