ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
SuiteScriptでレコードまたはトランザクションIDを自動生成する
適用
製品: NetSuite 2022.1
シナリオ
顧客名の最初の4英数字を基づいて、1を加えた最新のプロジェクト番号をつけて、プロジェクトIDを自動生成にするスクリプトが作成したいです。
解決策
設定 > 会社 > 自動生成番号 へ移動して、エンティティサブタブに属しているプロジェクトの上書きを許可するチェックバックスを有効にします。
Create a user event script with After Submit function that will be deployed on Project record. プロジェクトレコードへデプロイする送信後機能がついているユーザーイベントスクリプトを作成します。
define(['N/record', 'N/search', 'N/log'],
function (record, search, log) {
function afterSubmit(scriptContext) {
var currentRecord = scriptContext.newRecord;
var recId = currentRecord.id;
var objProj = record.load({
type: record.Type.JOB,
id: recId,
isDynamic: true
タグ付けされた:
0