1

当我执行如图所示的查询时,附件始终为空。我希望带有名称的附件的内容AttachmentFileName将在列中Attachment

如何检索文件的 blob?

select /*+ join_set(mat, mailmessageid, 5000) */ mat.Attachment xmlfilecontents
,      mat.division || '-' || AttachmentFileName filename
from   mailmessagesreceived mre
join   MailMessageAttachments mat
on     mat.mailmessageid = mre.id
and    mat.Type in ( 20, 22 ) /* 20: UBL 2.0, 22: Simplerinvoicing 1.0 */
where  mre.SenderMailbox = 'Facturen@ExactOnline.nl'
and    mre.created >= add_months(trunc(sysdate, -1), -10)
and    mat.FileSize > 0
4

1 回答 1

2

只要邮件消息尚未处理,该列Attachment就会存储与收到的 Exact Online 直接关联的附件。MailMessage在这种情况下,附件将转发到Documents

但是,Exact Online 发票本身是间接检索的。互联网位置在外地Url。它也可以在使用列的表中使用AttachmentFromUrl

于 2018-07-03T11:56:57.713 回答