I would like to change the description of the attachment. I would think I should use IdocumentImage.description.
I assume I first need to get the file number and then the document but I don't know how.
I would appreciate if someone can show me how to do this.
Thanks.
Change description of attachment
Re: Change description of attachment
You can open the order by order number using ordertracking, then get the attachments on that order and change its description.
//open order
OrderQuerySpec oqs = new OrderQuerySpec();
oqs.BaseOrderNumber = OrderNum; //order number you want.
//user ordertracking ot to get the order
IOrder order = ot.GetOrder(oqs, false);
//change the description of the attachment
order.DocumentImage[0].Description = "change the description"
//open order
OrderQuerySpec oqs = new OrderQuerySpec();
oqs.BaseOrderNumber = OrderNum; //order number you want.
//user ordertracking ot to get the order
IOrder order = ot.GetOrder(oqs, false);
//change the description of the attachment
order.DocumentImage[0].Description = "change the description"