ディスカッション
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.
SuiteScript2.0を使用して保管棚棚入ワークシートレコードを作成する方法
適用
製品: NetSuite 2022.2
シナリオ
SuiteScript2.0を使用して保管棚棚入ワークシートレコードを作成する方法
解決策
以下JSONデータをRESTLETスクリプトに送信します。
[{
"location": "3",
"itemId": "12",
"quantity": "500",
"bins":[
{
"issueinventorynumber": "19",
"binnumber": "3",
"quantity": "250"
},
{
"issueinventorynumber": "19",
"binnumber": "4",
"quantity": "250"
}
]
}]
これはサンプルのRESTLETスクリプトですが、任意のサーバー側スクリプトを使用して保管棚棚入ワークシートレコードを作成することができます。
/**
* @NApiVersion 2.x
* @NScriptType restlet
*/
define(['N/record', 'N/log'], function (record, log) {
function createBinWorksheet(itemsToBin) {
for (var i = 0; i < itemsToBin.length; i++) {
var binPutAway = record.create({
type: record.Type.BIN_WORKSHEET,
isDynamic: true,
タグ付けされた:
0