Order Attachments Update Issues
Posted: Mon Oct 06, 2014 12:18 pm
I am working with the Boylan release of Select.
I am going to be using the API to maintain a special document in some of my orders' attachments collections (i.e. IOrder.DocumentImage collection). I see samples on how to create a new document via the API (IOrder.DocumentImage.CreateNew()) which works great for document creation and attachment to an order. However, I do not see class members, examples, or discussion of how to perform the other core operations of CRUD (Create, Read, Update, Delete). Specifically, how can I either update or delete attachments?
As far as updating, I have tried simply editing the attributes of an existing document that have changed (i.e. OriginalLocation and SubmittedDate) and then saving the order (IOrder.SaveOrder) and while I get no errors neither does the document's content update--it still shows the content it had when I created it while the date does update as expected.
As far as deleting an attached document I don't have anything to go on so not sure what to even try. If I can get update to work then delete is not that important but it seems like the API should support full CRUD operation since sooner or later someone will need it.
I am going to be using the API to maintain a special document in some of my orders' attachments collections (i.e. IOrder.DocumentImage collection). I see samples on how to create a new document via the API (IOrder.DocumentImage.CreateNew()) which works great for document creation and attachment to an order. However, I do not see class members, examples, or discussion of how to perform the other core operations of CRUD (Create, Read, Update, Delete). Specifically, how can I either update or delete attachments?
As far as updating, I have tried simply editing the attributes of an existing document that have changed (i.e. OriginalLocation and SubmittedDate) and then saving the order (IOrder.SaveOrder) and while I get no errors neither does the document's content update--it still shows the content it had when I created it while the date does update as expected.
As far as deleting an attached document I don't have anything to go on so not sure what to even try. If I can get update to work then delete is not that important but it seems like the API should support full CRUD operation since sooner or later someone will need it.