Ken
04/20/2023, 6:29 PM{
"exportId": 101010101,
"order_number": "10",
"line_items": [
{
"sku": "Sku1",
"quantity": 1
},
{
"sku": "Sku2",
"quantity": 1
}
],
"shippingInfo": {
"tracking_number": "101010101",
"carrier": "shippo__usps",
"tracking_url": "<https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=101010101>",
"created_date": "2023-04-19T22:23:25"
}
}
al3xicon
04/20/2023, 6:31 PMal3xicon
04/20/2023, 6:31 PMKen
04/20/2023, 6:32 PMal3xicon
04/20/2023, 6:32 PMal3xicon
04/20/2023, 6:32 PMKen
04/20/2023, 6:33 PMKen
04/20/2023, 6:34 PM{
"exportId": 101010101,
"order_number": "10",
"line_items": [
{
"sku": "Sku1",
"quantity": 1
},
{
"sku": "Sku2",
"quantity": 1
}
],
"shippingInfo": {
"tracking_number": "101010101",
"carrier": "shippo__usps",
"tracking_url": "<https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=101010101>",
"created_date": "2023-04-19T22:23:25"
}
}
My ideal output after look up
{
"shipheroShipmentId": 101010101,
"order_number": "10",
"line_items": [
{
"sku": "Sku1",
"quantity": 1,
"serialLot": "Lot123"
},
{
"sku": "Sku2",
"quantity": 1,
"serialLot": "Lot456"
}
],
"shippingInfo": {
"tracking_number": "101010101",
"carrier": "shippo__usps",
"tracking_url": "<https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=101010101>",
"created_date": "2023-04-19T22:23:25"
}
}
al3xicon
04/20/2023, 6:34 PMal3xicon
04/20/2023, 6:34 PMal3xicon
04/20/2023, 6:35 PMal3xicon
04/20/2023, 6:36 PMal3xicon
04/20/2023, 6:36 PMKen
04/20/2023, 6:38 PMKen
04/20/2023, 6:38 PMal3xicon
04/20/2023, 6:39 PMal3xicon
04/20/2023, 6:39 PMal3xicon
04/20/2023, 6:39 PMal3xicon
04/20/2023, 6:41 PMal3xicon
04/20/2023, 6:41 PMKen
04/20/2023, 6:43 PMal3xicon
04/20/2023, 6:44 PMal3xicon
04/20/2023, 6:45 PMal3xicon
04/20/2023, 6:45 PMal3xicon
04/20/2023, 6:45 PMal3xicon
04/20/2023, 6:45 PMKen
04/20/2023, 6:45 PMKen
04/20/2023, 6:45 PMal3xicon
04/20/2023, 6:46 PMal3xicon
04/20/2023, 6:46 PMKen
04/20/2023, 6:46 PMmessage: A mapping error occurred. More than one match for "[["inventorynumber.item","is","sku1"],"AND",["inventorynumber.location","is","13"]]" for the record type "inventorydetail".
al3xicon
04/20/2023, 6:46 PMal3xicon
04/20/2023, 6:47 PMKen
04/20/2023, 6:47 PMKen
04/20/2023, 6:48 PMal3xicon
04/20/2023, 6:48 PMKen
04/20/2023, 6:48 PMal3xicon
04/20/2023, 6:48 PMal3xicon
04/20/2023, 6:49 PMKen
04/20/2023, 6:49 PMal3xicon
04/20/2023, 6:51 PMKen
04/20/2023, 6:51 PMal3xicon
04/20/2023, 6:51 PMal3xicon
04/20/2023, 6:51 PMal3xicon
04/20/2023, 6:51 PMal3xicon
04/20/2023, 6:52 PMKen
04/20/2023, 6:53 PMal3xicon
04/20/2023, 6:54 PMKen
04/20/2023, 6:55 PM{
"exportId": 101010101,
"order_number": "10",
"line_items": [
{
"sku": "Sku1",
"quantity": 1
},
{
"sku": "Sku2",
"quantity": 1
}
],
"shippingInfo": {
"tracking_number": "101010101",
"carrier": "shippo__usps",
"tracking_url": "<https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=101010101>",
"created_date": "2023-04-19T22:23:25"
}
}
Ken
04/20/2023, 6:55 PMKen
04/20/2023, 6:56 PMal3xicon
04/20/2023, 6:56 PMal3xicon
04/20/2023, 6:56 PMal3xicon
04/20/2023, 6:56 PMKen
04/20/2023, 6:58 PMKen
04/20/2023, 7:01 PMal3xicon
04/20/2023, 7:54 PMKen
04/20/2023, 10:03 PMKen
04/20/2023, 10:15 PMKen
04/21/2023, 12:02 AMFailed to create, update/transform record because You have entered an invalid default value for this record transformation operation.
al3xicon
04/21/2023, 12:04 AMKen
04/21/2023, 12:04 AMKen
04/21/2023, 12:05 AMKen
04/21/2023, 12:05 AM{
"nlobjFieldIds": {
"celigo_nlobjTransformId": 5138070,
"shipstatus": "C",
"trandate": "4/20/2023 11:35:28 pm",
"celigo_initializeValues": "celigo_nlobjTransformId"
},
"nlobjSublistIds": {
"item": {
"lines": [
{
"location": 13,
"itemreceive": "true",
"itemname": "NCL2.0-5",
"celigo_inventorydetail": {
"nlobjRecordType": "inventorydetail",
"nlobjFieldIds": {},
"nlobjSublistIds": {
"inventoryassignment": {
"lines": [
{
"issueinventorynumber": "LOTFC2023",
"quantity": 1
}
]
}
}
}
},
{
"location": 13,
"itemreceive": "true",
"itemname": "APGX-N-SL-2.0",
"celigo_inventorydetail": {
"nlobjRecordType": "inventorydetail",
"nlobjFieldIds": {},
"nlobjSublistIds": {
"inventoryassignment": {
"lines": [
{
"issueinventorynumber": "622091-4",
"quantity": 1
}
]
}
}
}
}
]
}
}
}
al3xicon
04/21/2023, 12:09 AMal3xicon
04/21/2023, 12:09 AMal3xicon
04/21/2023, 12:09 AMal3xicon
04/21/2023, 12:10 AMKen
04/21/2023, 12:10 AMvar fulfillment = record.transform({
fromType: record.Type.SALES_ORDER,
fromId: requestBody.id,
toType: record.Type.ITEM_FULFILLMENT,
defaultValues: {
inventorylocation: requestBody.location,
},
});
Ken
04/21/2023, 12:10 AMal3xicon
04/21/2023, 12:10 AMKen
04/21/2023, 12:11 AMal3xicon
04/21/2023, 1:25 PMal3xicon
04/21/2023, 1:25 PMKen
04/21/2023, 4:49 PMKen
04/21/2023, 4:50 PMal3xicon
04/21/2023, 4:56 PMal3xicon
04/21/2023, 8:41 PMal3xicon
04/21/2023, 8:41 PM{
"nlobjRecordType": "itemfulfillment",
"nlobjFieldIds": {
"celigo_nlobjTransformId": 203326,
"carrierform": "ns",
"shipcarrier": "nonups",
"shipmethod": 31,
"shipstatus": "C",
"trandate": "4/20/2023 12:00:00 am"
},
"nlobjSublistIds": {
"item": {
"lines": [
{
"quantity": 5
}
]
}
},
"documentIndex": 0
}
al3xicon
04/21/2023, 8:42 PMal3xicon
04/21/2023, 8:42 PMKen
04/21/2023, 8:44 PMal3xicon
04/21/2023, 8:45 PMal3xicon
04/21/2023, 8:46 PMal3xicon
04/21/2023, 8:47 PMal3xicon
04/21/2023, 8:47 PMKen
04/21/2023, 8:47 PM{
"nlobjRecordType": "itemfulfillment",
"nlobjFieldIds": {
"celigo_nlobjTransformId": 5138070,
"inventorylocation": "13",
"shipstatus": "C",
"trandate": "4/20/2023 11:35:28 pm",
"celigo_initializeValues": "celigo_nlobjTransformId,inventorylocation"
},
"nlobjSublistIds": {
"item": {
"lines": [
{
"itemreceive": "true",
"itemname": "Sku1",
"location": 13,
"celigo_inventorydetail": {
"nlobjRecordType": "inventorydetail",
"nlobjFieldIds": {
"celigo_replaceAllLines_inventoryassignment": "true"
},
"nlobjSublistIds": {
"inventoryassignment": {
"lines": [
{
"issueinventorynumber": "LOTFC2023",
"quantity": 1,
"inventorystatus": 1
}
]
}
}
}
},
{
"itemreceive": "true",
"itemname": "Sku2",
"location": 13,
"celigo_inventorydetail": {
"nlobjRecordType": "inventorydetail",
"nlobjFieldIds": {
"celigo_replaceAllLines_inventoryassignment": "true"
},
"nlobjSublistIds": {
"inventoryassignment": {
"lines": [
{
"issueinventorynumber": "622091-4",
"quantity": 1,
"inventorystatus": 1
}
]
}
}
}
}
]
}
},
"documentIndex": 0,
"INTEGRATOR_IO_MAPPER": true
}
al3xicon
04/21/2023, 8:48 PMKen
04/21/2023, 8:50 PMKen
04/21/2023, 8:50 PMnlapi calls registered for $R:
r = nlapiTransformRecord("salesorder", 5138070, "itemfulfillment", {"celigo_nlobjTransformId":5138070,"inventorylocation":"13"});
al3xicon
04/21/2023, 8:51 PMal3xicon
04/21/2023, 8:51 PM2023-04-21T20:32:50.186Z nlapi calls registered for $R r = nlapiTransformRecord("salesorder", 181882, "itemfulfillment", {});
r.setFieldValue("carrierform", "ns");
r.setFieldValue("shipmethod", 31);
r.setFieldValue("shipstatus", "C");
r.setFieldValue("trandate", "4/21/2023");
r.selectLineItem("item", 1);
r.setCurrentLineItemValue("item", "itemreceive", "T");
r.setCurrentLineItemValue("item", "quantity", 2);
r.setCurrentLineItemValue("item", "line", "1");
r.commitLineItem("item");
r.selectLineItem("item", 2);
r.setCurrentLineItemValue("item", "itemreceive", "T");
r.setCurrentLineItemValue("item", "quantity", 2);
r.setCurrentLineItemValue("item", "line", "2");
r.commitLineItem("item");
nlapiSubmitRecord(r, false, false);
al3xicon
04/21/2023, 8:51 PMKen
04/21/2023, 8:53 PMKen
04/21/2023, 8:54 PMKen
04/21/2023, 8:54 PMKen
04/21/2023, 8:55 PMKen
04/21/2023, 8:55 PMKen
04/21/2023, 8:56 PMnlapi calls registered for $R:
r = nlapiTransformRecord("salesorder", 5138070, "itemfulfillment", {"inventorylocation":"13"});
r.setFieldValue("shipstatus", "C");
r.setFieldValue("trandate", "4/20/2023");
r.selectLineItem("item", 1);
r.setCurrentLineItemValue("item", "itemreceive", "T");
r.setCurrentLineItemValue("item", "itemname", "sku1");
r.setCurrentLineItemValue("item", "location", 13);
sr = r.editCurrentLineItemSubrecord("item", "inventorydetail");
sr.commit();
r.setCurrentLineItemValue("item", "line", "1");
r.commitLineItem("item");
r.selectLineItem("item", 2);
r.setCurrentLineItemValue("item", "itemreceive", "T");
r.setCurrentLineItemValue("item", "itemname", "sku2");
r.setCurrentLineItemValue("item", "location", 13);
sr = r.editCurrentLineItemSubrecord("item", "inventorydetail");
sr.commit();
r.setCurrentLineItemValue("item", "line", "2");
r.commitLineItem("item");
nlapiSubmitRecord(r, false, false);
al3xicon
04/21/2023, 8:57 PMal3xicon
04/21/2023, 8:57 PMKen
04/21/2023, 8:58 PMFailed to save record because Invalid inventorystatus reference key 1 for issueinventorynumber 128090.
Ken
04/21/2023, 8:58 PMal3xicon
04/21/2023, 8:58 PMKen
04/21/2023, 8:59 PMal3xicon
04/21/2023, 8:59 PMal3xicon
04/21/2023, 8:59 PMal3xicon
04/21/2023, 9:00 PMKen
04/21/2023, 9:03 PMKen
04/21/2023, 9:04 PMal3xicon
04/21/2023, 9:04 PMKen
04/21/2023, 9:04 PMal3xicon
04/21/2023, 9:04 PMKen
04/21/2023, 9:04 PMal3xicon
04/21/2023, 9:04 PMKen
04/24/2023, 10:29 PMal3xicon
04/24/2023, 10:37 PMKen
04/24/2023, 10:38 PMKen
04/24/2023, 10:39 PM