Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Dropship Purchase Order has Receive Button instead of Mark Shipped Button
I have a requirement to create purchase order from sales order in net suite through c# code.
code i have used to create purchase order:
var createPurchaseOrder = new PurchaseOrder();
createPurchaseOrder.entity = new RecordRef()
{
internalId = "653",
name = "Auto"
//type = RecordType.purchaseOrder,
//typeSpecified = true
};
RecordRef soRecordRef = new RecordRef();
soRecordRef.internalId = soInternalId;
soRecordRef.type = RecordType.salesOrder;
soRecordRef.typeSpecified = true;
createPurchaseOrder.createdFrom = soRecordRef;
RecordRef cFormRecordRef = new RecordRef();
cFormRecordRef.internalId = "106";
createPurchaseOrder.customForm = cFormRecordRef;
RecordRef depRecordRef = new RecordRef();
depRecordRef.internalId = "15";
depRecordRef.name = "01-Cash";
depRecordRef.type = RecordType.department;
depRecordRef.typeSpecified = true;
createPurchaseOrder.department = depRecordRef;
RecordRef locRecordRef = new RecordRef();
locRecordRef.internalId = "1";
locRecordRef.name = "2439";
locRecordRef.type = RecordType.location;
locRecordRef.typeSpecified