Skip to Content
0
Jan 27, 2023 at 02:31 PM

Adding a subdirectory/subpath when adding an attachment with the di api

73 Views Last edit Jan 27, 2023 at 02:34 PM 3 rev

Hello,

I would like to set a subdirectory directly via DI API after a file has been selected via "Browse" button, furthermore this should be done before the update button is pressed (no row in table ATC1, file not yet in attachment directory).

Basically the same functionality as using "Change Path" via context menu on the "Target path" cell.

Background is that object/document based (sales order, delivery, A/R invoice), files should be saved in different subdirectories.

Is this possible?

subpath-when-adding-an-attachment-01.png

subpath-when-adding-an-attachment-02.png

Best regards,

Gregor