I have the following saved search which is suppose...
# suitescript
k
I have the following saved search which is supposed to give me the custom record (that has a native record's internal id in a field), however, it seems like the
filter
is not working properly and I am not getting only the records that match the criteria. Can anyone see something that I can't catch?
Copy code
function afterSubmit(context){

    var recId = context.newRecord.id;

    var recordSearchObj = search.create({
        type: "customrecord_abc_integration_rec",
        filters:
        [
            ["custrecord_abc_internal_id", "anyof", recId]
        ],
        columns:
        [
           search.createColumn({
              name: "name",
              sort: search.Sort.ASC,
              label: "Name"
           }),
           search.createColumn({name: "custrecord_date_modified", label: "Date Modified"}),
           search.createColumn({name: "internalid", label: "Internal ID"})
        ]
     });
}