Forum Discussion
Unfortunately, NetSuite’s API does not make this easy.
To search on the paymentMethod field, you have to set the operator to one of the operators in the SearchMultiSelectFieldOperator column in the “Platform Enumerations” table in their docs. There are just two: anyOf, noneOf. You want anyOf.
With that operator, the searchValue is an array:
The easiest way to specify a value is with an expression like this:
[{'internalId': 113}]
In context, it looks like this:
Unfortunately, NetSuite only seems to support searching on the internalId (113), not on the name (‘CreditCard’), since I suppose that would require an additional join on the back end.
Hope that helps.
- bojanvelevski4 years agoValued Contributor
Hey @aditya.gupta41,
Use the following expression in a mapper, and you’ll receive the output you need:
$group.map(x=>x.Response.values().reduce((acc,curr)=> acc.concat(curr),[]).reduce((acc,curr)=> acc.extend(curr), {}))
Regards,
Bojan - aditya_gupta414 years agoContributor
This worked for me. Thanks
Related Content
- 3 years ago
- 4 years ago