https://netsuiteprofessionals.com logo
n

NS Expert

04/09/2022, 4:25 PM
When using search in SuiteScript, is there any filter named "*customersubof*"? I can't find it anywhere.
Copy code
pledgeSearch.filters.push(search.createFilter({
      name: 'customersubof',
      join: null,
      operator: search.Operator.ANYOF,
      values: [donorId]
    }));
m

mattdahse

04/09/2022, 4:39 PM
Yes, this is a valid search filter. It returns a result if the customer IS the value, or is a child of the value or is the child of another child of this customer, etc.
n

NS Expert

04/09/2022, 4:58 PM
Thank you!