ディスカッション
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.
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