ディスカッション
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.
SuiteScriptでのカスタムレコードの取得方法
カスタムレコードを表示状態で開いている際に、対象のレコードを取得するための関数がわかりません。
どなたか助けていただけないでしょうか
NetSuiteの対象機能:SuiteScript
SuiteScriptの種類:クライアントスクリプト
挙動イメージ
レコードの表示画面に描画したボタンを押した際に、カスタムレコードを読み込み、変数に格納する
現在使っているrecord.loadの関数だとなぜか取得できません。
現在のソースコードは下記です。
function createTransferOrder(context) {
//現在View状態で開いているカスタムレコードIDを取得
var transferRecordId = currentRecord.get().id;
var date = currentDate = new Date();
//
var recordType = "transferorder";
var transferRecord = record.load({
type: recordType,
id: transferRecordId,
isDynamic: true,
});
var lineCount = transferRecord.getLineCount({ sublistId: 'recmachcustrecord_ksej_itemlist' });
var test = true
var lineCount = transferRecord.getLineCount({ sublistId: 'recmachcustrecord_ksej_itemlist' });