cancel
Showing results for 
Search instead for 
Did you mean: 

Get Attachment File by DI API in SAP B1

0 Kudos
515

Hello,

In my addon for SAP B1 I need to get attachments of some documents and copy them to some folder indicated by user.

Does anybody know how to do it?

There is an objeect Attachment2.Lines. But it only has property SourcePath. How can I get property TargetPath and Subpath?

View Entire Topic
former_member743456
Participant
0 Kudos

Use this query:

select convert(nvarchar, trgtPath) + '\' + 
       convert(nvarchar, FileName) + '.' + 
       FileExt as FullPath
,* from atc1