cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove attachment lines

Former Member
0 Kudos

Hi,

I need to remove Attachment lines (ATC1) using SDK.

At the SDK help, I found the following:

"To remove an Attachment item, set its FileName property to NULL ("") and call the Update method of the calling object."

I did that, but when i call the Update() method, it returns error -5002 (path not found).

Does anyone have an idea of how to remove attachment lines?

I spent more time to fix this issue. But I cant fix. 😞

I don't have much time for this. Please help me.

Regards,

Jithin George

Accepted Solutions (1)

Accepted Solutions (1)

former_member185682
Active Contributor
0 Kudos

Hi Jithin,

This information "To remove an Attachment item, set its FileName property to NULL ("") and call the Update method of the calling object." is from old Attachment object. From DI API version 2005 you should use Attachments2 object.

Unfortunately in this object there is no way to remove a file from DI API.

Kind Regards,

Diego Lother

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Diego