Add attachment to purchase order, (Added on item)

Hi,
I need add attachment to purchase order, when i insert an item automatically. (Added on item)
Can any one send me a code example please?

Hi @herdem . Hope link helps.

Hello @capuzr, We had a request to update all attachments in the purchase order with respect to the selected items in the order with @herdem. We’ve used something like this:

Thanks anyway.