ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
SuiteScript2.0を使用してメッセージレコードの「cc」フィールドに値を設定する
適用
製品: NetSuite 2022.2
シナリオ
メッセージレコードのレコードブラウザーに表示されるccフィールドは、レコードの作成時には使用できません。
スクリプトでccフィールドに値を追加するには、ユーザーがccフィールドに値を入力する必要があります。
解決策
サンプルスクリプトは以下となります。
// This will create a message record
var messageRecord = record.create({
type: record.Type.MESSAGE,
});
// This will set the body of the message
messageRecord.setValue({
fieldId: 'message',
value: 'The body of the message',
});
// This will set the subject of the message
messageRecord.setValue({
fieldId: 'subject',
value: 'The subject of the message',
});
// This will set the author of the message, you may change
タグ付けされた:
0