Can anyone help with this, as I'm completely stuck?
I'm using web services to create a drop-ship purchase order from an existing sales order. I can create the PO just fine, but am unable to link the two records together. I have tried:-
var po = new PurchaseOrder
{
createdFrom = new RecordRef
{
internalId = "1234562", //internal id of sales order
type = RecordType.salesOrder,
typeSpecified = true
},
//snip - rest of details here...
}
This creates the purchase order but not the link.
I've also tried retrospectively setting the purchase order details on the sales order item, but get the dreaded "field is available either when a record is created or updated, but not in both cases" error.
createdPo = new RecordRef
{
internalId = "2617804",
type = RecordType.purchaseOrder,
typeSpecified = true
},
createPo = SalesOrderItemCreatePo._dropShipment,
createPoSpecified = true
Can anyone help, or should I give it up and become a lumberjack?