Skip to Content
avatar image
Former Member

How to remove attachment lines

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 31, 2017 at 01:33 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 21, 2017 at 02:17 AM

    Thanks Diego

    Add comment
    10|10000 characters needed characters exceeded