Hello. I have a quick question. I have created a s...
# suitescript
b
Hello. I have a quick question. I have created a saved search using UI. I load that script using
N/search
module and added a filter which is already added UI but different value. Does it overwrite it? When I tried to using
customersubof
it looks like it was overwrite but when I use
name
it doesn't It returns no result. Could someone clarify this please?
c
Hi @Boris Yasen, I don't think it will override the value if you create a filter already presents in your UI existing search. Usually, filters created in the UI should be valid for all your scenarios and static: for every dynamic filter (which change regarding your use cases), it should be created in your script.
b
Thank you @Caroline
a
consider using this chrome extension to get the code to create the search independently in your script. you don't have to worry about someone coming along and editing the search and breaking your script https://chrome.google.com/webstore/detail/netsuite-search-export/gglbgdfbkaelbjpjkiepdmfaihdokglp?hl=en-US