If someone want to double check and in the process...
# suitescript
a
If someone want to double check and in the process help my sanity: • Transaction Search, Type Sales Order, Main Line = True. • If you try to filter by Billing Address...(join) Internal ID or Custom Field on the Address record it does not work. • If you try to return as a result Billing Address...(join) Custom Field or Internal ID it does not return anything(empty column).
b
Copy code
require(["N/search"], function (search) {
  var searchResult = search
    .create({
      type: "transaction",
      filters: [
        ["mainline", "is", "T"],
        "AND",
        ["type", "is", "SalesOrd"],
        "AND",
        ["billingaddress.internalid", "is", "616"],
      ],
      columns: [{ join: "billingaddress", name: "internalid" }],
    })
    .run()
    .getRange({ start: 0, end: 1000 })[0];

  log.debug('searchResult', searchResult);
});
a
@battk Test that in the UI or an actual script and let me know, I assume is a bug and it does not work for me...
Maybe specific bug to the account I'm using.
b
message has been deleted
only minor change to the logging:
Copy code
console.debug('searchResult', searchResult.toJSON());