是否可以将一次搜索的搜索结果用作 NetSuite 中新搜索的条件
使用 NetSuite 是否可以将一个搜索嵌入到另一个搜索中?我需要一个搜索,该搜索将有效地使用条件中另一个搜索的结果。
我的搜索的基本结构是:
Return all non-inventory skus, starting with a specific prefix,
Where the occurrence of the previously mentioned skus on a custom field on
Inventory-Part records is greater than 0.
这旨在用于警报
我不确定如何在 NetSuite 的搜索生成器中构建它。
Using NetSuite is it possible to embed a search within another search? I have a search that I need that will be effectively using another search's results in the criteria.
The basic structure of my search is:
Return all non-inventory skus, starting with a specific prefix,
Where the occurrence of the previously mentioned skus on a custom field on
Inventory-Part records is greater than 0.
This is then intended to be used for alerts
I'm not sure how to build this within NetSuite's search builder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为这与 m_cheung 建议的任何脚本无关。
要回答您的问题,是的,这可以通过保存的搜索来实现。
在条件部分:
I don't think this pertains to any scripting as m_cheung suggested.
To answer your question, yes this is doable via saved search.
In the criteria section:
使用 nlapiSearchRecord(RECORDTYPE, JOIN_, __SEARCHFILTERSARRAY, __SEARCHCOLUMNSARRAY) 您可以返回搜索结果并将返回的数据进一步传递到脚本逻辑中,
例如,如果您使用searchFilter 数组和 searchColumn 数组然后将这些数组传递给 nlapiSearchRecord('item'),您可以将此调用分配给变量:
var searchresults = nlapiSearchRecord('item', null, searchFiltersArray, searchColumnsArray);
然后使用 searchresults (这是一个 nlobjSearchResults 对象),您可以提取返回的搜索数据以获取 search2 中的条件:
using nlapiSearchRecord(RECORDTYPE, JOIN_, __SEARCHFILTERSARRAY, __SEARCHCOLUMNSARRAY) you can return the results of a search and pass the returned data further into script logic
for example if you build search1 using a searchFilter array and a searchColumn array then pass these arrays into nlapiSearchRecord('item'), you can assign this call to a variable:
var searchresults = nlapiSearchRecord('item', null, searchFiltersArray, searchColumnsArray);
then using searchresults (which is an nlobjSearchResults object) you can pull out your returned search data for criteria in search2:
您可以使用保存的搜索在 suitescript 中创建另一个搜索。
有点像,
var arrSearchResult = nlapiSearchRecord( null , SAVED_SEARCH_ID , FILTERS , COLUMNS);
You can use a saved search for creating another search in suitescript.
Somewhat like ,
var arrSearchResult = nlapiSearchRecord( null , SAVED_SEARCH_ID , FILTERS , COLUMNS);