ディスカッション
AIを用いた自動化で請求書処理を合理化
AIを用いた考察を使用して、計画と予測を迅速化
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
We’re excited to announce that the 2025 Community Recap is now available! This special recap highlights the amazing contributions and achievements of our members over the year and celebrates the collective success of our community.
Check your personalized recap to see the impact you made in 2025 and how your efforts helped shape our community’s growth and success.
View Your 2025 Community Recap
Thank you to everyone for your passion, collaboration, and support. Here’s to building an even stronger community together in the year ahead!
Season’s greetings to you and yours! As we head into the holidays (December 24 – January 4), we want to take a moment to celebrate the incredible strength and collaboration within our community. Even during the break, you can continue to benefit from connecting with peers, searching related threads, posting your questions, and marking helpful replies as “Accepted” in the Support Community.
Please note our dedicated team will be on reduced coverage during this time, and regular responsiveness will resume on January 5. Wishing you a joyful and restful holiday season!
-The NetSuite Support Community Team
NetSuite 管理者ヒント | SuiteScript保存検索を使用した別の従業員ステータスの確認
従業員情報を効果的に管理することは、あらゆる組織の人事部門や人事部門担当者にとって重要なタスクです。この重要な側面の1つは、従業員のステータスを理解することです。これは、特定の時点における従業員と会社との関係を示します。
NetSuiteでは、管理者は、スムーズな運用と正確なデータ・レポートを確保するために、特定の従業員ステータスを取得および分析する必要があることがよくあります。SuiteScriptベースの保存検索をは、このタスクを実行するための強力なツールです。次に、SuiteScriptを使用して、様々な従業員ステータスを、関連する内部IDとともに取得および記録する方法を示します。
SuiteScriptコードの例
次のコード・スニペットは、従業員ステータスの保存検索を作成および実行する方法を紹介します。
require(['N/search'],function(search){
var soSearch = search.create({
type: search.Type.EMPLOYEE_STATUS,
columns:[{
name:'name'
},
{
name:'internalid'
}],
title: 'Different Status of Employee'
})
var resultSet=soSearch.run()
resultSet.each(function(result){
console.log('-----------')
console.log('Status Name: ' + result.getValue({name:'name'}))
console.log('Internal ID: ' + result.getText({name:'internalid'}))
console.log('-----------')
return true
})
})
スクリプトの主なステップ
1.N/searchモジュールが必要
スクリプトは、SuiteScriptで保存検索を作成および実行するためのAPIを提供するN/searchモジュールをインポートすることから始まります。
2. 保存検索をの定義
search.createメソッドを使用して、EMPLOYEE_STATUS型をターゲットとする検索が作成されます。検索では、次の2つの列を指定します。
- name: ステータス名。
- internalid: 各従業員ステータスに関連付けられた内部ID。
3. 検索結果と処理結果の実行
runメソッドは検索を実行し、結果を含むresultSetオブジェクトを返します。各結果は各メソッドを使用して処理され、コンソールにステータス名と内部IDが記録されます。
予想される出力
このスクリプトを実行すると、各従業員ステータスとその内部IDが次の形式で出力されます。
SuiteScriptのデプロイの詳細は、これらのNetSuiteの始め方記事を確認してください。
- NetSuite の始め方 | スクリプトレコードの作成方法
- NetSuite の始め方 | SuiteScript 2.x レコードでスクリプトタイプを設定する方法
- NetSuite の始め方 | スクリプトレコードの展開方法
SuiteScriptで保存検索を作成する他の方法をご存知ですか。皆さんと共有しましょう!
Richard James Uri - SuiteCloud | WMS Tech | SuiteCommerce Advanced
----
- NetSuite Admin Corner | New to NetSuite
- Explore the NSC Webinars Category
- Join our poll and share your ideas! We want to know what you think. Don't forget to comment and make your voice heard!
- Expand your NetSuite knowledge by joining this month's Ask A Guru Live about Advanced Accounting. RSVP on this event now!
