Search both non inventory item or an inventory item and either dropship/ special order

let itemSearchObj = search.create({
                    type: "item",
                    filters:
                        [
                            ["isinactive", "is", "F"],
                            "AND",
                            ["internalid", "anyof", itemArray],
                            "AND",
                            [[["type", "noneof", "InvtPart"]],
                                "OR",
                                [["type", "anyof", "InvtPart"],
                                "AND",
                                [["isdropshipitem", "is", "T"],
                                "OR",
                                ["isspecialorderitem", "is", "T"]]]
                            ]
                        ],
                    columns:
                        [
                            search.createColumn({ name: "type", label: "Type" }),
                            search.createColumn({ name: "internalid", label: "Internal ID" })
                        ]
                });

Leave a comment

Your email address will not be published. Required fields are marked *