How can i get the list of customer in userevent sc...
# suitescript
a
How can i get the list of customer in userevent script using suitescript 2.0
s
Do you need list of all customers or just the one selected in the sale order in before or after submit?
a
i need list of all customers
s
To get the list of all customers you can use
N/search
module in Suite Script 2.0 and then use
search.create
with no filter or a filter of
"isinactive", "is", false
using this will give you a list of all active customers. For further you can read from this help article about N/search. https://4921917.app.netsuite.com/app/help/helpcenter.nl?fid=section_4345764122.html
a
great . Thanks. One thing more , would it not have any impact of performance ? i mean slowing down the transaction load etc
s
It shouldn't effect the page load that much.
👍 1
a
Great . Thanks for help
p
What are you going to do with the list?
a
nothing .. just for knowledge of how to get any list.. customer list just used as an example