Boban Dragojlovic
09/20/2024, 3:18 PMCeligo AI
09/20/2024, 3:18 PMAI generated answer (using internal Slack threads):To set the field
landedcostshipmentitems
on an inbound shipment landed cost sublist, you would need to use the SuiteScript API. Specifically, you would use the record.setSublistValue
method.
Here is a general example of how you might use this method:
javascript
var record = record.load({
type: record.Type.INBOUND_SHIPMENT,
id: 'your_inbound_shipment_id'
});
record.setSublistValue({
sublistId: 'landedcost',
fieldId: 'landedcostshipmentitems',
line: 'your_line_number',
value: 'your_value'
});
record.save();
In this example, replace 'your_inbound_shipment_id'
, 'your_line_number'
, and 'your_value'
with your actual inbound shipment ID, line number, and value, respectively.
Please note that this is a general example and may need to be adjusted based on your specific use case. Also, remember that you need to have the necessary permissions to load and modify the inbound shipment record.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/20/2024, 3:18 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823398232
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82073766
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813582778
Celigo AI
09/20/2024, 3:18 PM