Change description of attachment

Discussions related to custom development with Select.
Post Reply
Shevy
Posts: 48
Joined: Tue Dec 23, 2008 12:21 pm

Change description of attachment

Post by Shevy »

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.
neetab
Posts: 22
Joined: Wed Apr 17, 2013 3:20 pm

Re: Change description of attachment

Post by neetab »

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"
Post Reply