ディスカッション
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 > 集計された列をアクセスする時に、複数のヌル値のエラーが発生
適用
製品: NetSuite 2022.1
シナリオ
スクリプトを介して、保存検索の結果列をアクセスする時、「SSS_MISSING_REQD_ARGUMENT」のエラーが発生しています。
解決策
保存検索では、集計された結果列がある場合、スクリプトに指定必要です。
SuiteScript 1.0
function updatecustomer_email_scheduledOn(type) {
var search = nlapiLoadSearch('transaction', 'customsearch28');
var results = search.runSearch();
results.forEachResult(function (searchResult) {
var theRecord = nlapiLoadRecord('customer', searchResult.getValue('entity', null, 'group'));
theRecord.setFieldValue('email', searchResult.getValue('custbody_firmex_contact_email', null, 'group'));
nlapiSubmitRecord(theRecord);
return true;
});
}
SuiteScript 2.0
require(['N/search'], function (search) {
var soSearch = search.load({
id: 28
});
var soResultSet = soSearch.run();
var soResult = soResultSet.getRange(0, 3);
console.log(soResult);
for (var x = 0; x < soResult.length; x++) {
var soObj = {}
soObj.entity = soResult[x].getValue({
name: 'entity',
summary: 'GROUP'
});
console.log(soObj);
}
})
集計列として指定されていない場合、アクセスすると以下のエラーが発生します。
- コード: SSS_MISSING_REQD_ARGUMENT Details: id
免責事項
ここに記載されているサンプルコードは、法律で認められている最大限の範囲で、いかなる種類の保証もなく、「現状のまま」で提供されています。Oracle+NetSuite社は、開発者がそれぞれの開発プラットフォームにサンプルコードを実装したり、独自の Web サーバー構成を使用したりする際に、個々の成功を保証するものではありません。
タグ付けされた:
0