ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
PHPツールキットを用いて特定アイテムを含む発注書を検索する
適用
製品: NetSuite 2022.1
シナリオ
このPHPのサンプルコードは、特定のアイテムを含むすべての注文書を検索します。
解決策
require_once 'PHP_Toolkit_2012_2/NetSuiteService.php'; //include the PHP toolkit service library
$service = new NetSuiteService(); //initialize the netsuite service - the main object
$search = new TransactionSearchBasic(); //search for transaction in BASIC mode
$RecordRefsIDs = Array('1551', '21687', '21696'); //IDs of transactions to search for
$SearchMultiSelectField = new SearchMultiSelectField(); //set up multiselect field to which IDs will be put
$RecordRefs = Array(); //array to hold IDs of transactions to search for
//fill array of record references with RecordRef objects
for($i = 0; $i < sizeof($RecordRefsIDs); $i++) {
$RecordRef = new RecordRef(); //each ID needs to be presented as RecordRef
$RecordRef->internalId = $RecordRefsIDs[$i]; //here the ID is put as RecordRef internal ID
array_push($RecordRefs, $RecordRef);
タグ付けされた:
0