Developer Q&A
ApStatusChangeCommand - {!{Vendor Invoice}!} is read-only and cannot be modified.
over 4 years ago by Jose Reynoso
Hi,
We are trying to update the WorkOrder.WorkOrderCost.ApStatusId to Exported.
We are using the following code;
var command = new ApStatusChangeCommand
{
WorkOrderId = 15162,
VendorInvoiceStatusId = 5
};
var response = await service.ExecuteAsync(new ExecuteRequest(CorrigoNetOptionsFactory.CreateDefault(), command));
return true;
And we are receiving "{!{Vendor Invoice}!} is read-only and cannot be modified."
Can someone please assist?
Regards,
Jose