Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个客户是父母,这个客户可能有几个子客户。此子客户是父子选项卡(关系)下的子子选项卡。我如何获取或获取父客户的所有子客户。我需要根据父客户字段值更新子客户的一些值。
要获得套件脚本中的子客户,您可以使用parent过滤器。例如下面的搜索:
parent
var subCutsomersResults = nlapiSearchRecord('customer', null, ['parent', 'anyof', PARENT_CUSTOMER_ID], YOUR_SEARCH_COLUMNS_ARRAY);