gpt4 book ai didi

exact-online - 如何使用 Invantive Query Tool 从 Exact Online 仅下载我的采购发票文件?

转载 作者:行者123 更新时间:2023-12-02 01:08:35 25 4
gpt4 key购买 nike

为了遵守法规,我尝试从我的一些部门下载采购发票文件(PDF 文件),将它们保存在磁盘上以供存档。

我使用 Invantive 查询工具来执行此操作。我想知道使用哪个表以及如何仅针对采购发票文档导出这些附件。

最佳答案

您确实可以通过使用 Invantive Query Tool 或 Invantive Data Hub 中的导出选项来做到这一点。

您需要的是将类型 20(采购发票)的文档信息与实际附件文件 Hook 的查询。您可以在 DocumentTypes View 中找到类型列表及其描述。您可以在 DocumentAttachmentFiles 表中找到文档附件。

当您检索到它时,您可以使用 local export documents 语句将文档从该查询导出到磁盘。

完整的查询在这里:

use 123456

select /*+ join_set(dae, document, 10000) */ attachmentfromurl
, dct.division || '/' || dae.id || '-' || filename
filepath
from exactonlinerest..documents dct
join DocumentAttachmentFiles dae
on dae.division = dct.division
and dae.document = dct.id
where dct.Type = 20
order
by dct.division
, dae.id

local export documents in attachmentfromurl to "c:\temp\docs" filename column Filepath

确保在 use 语句中正确设置部门 ID(这是技术 ID,而不是“部门编号”,它可以包含重复项)。您可以在分区 下的顶部菜单栏中找到它。或者简单地使用 use all 从所有部门获取文档(这可能需要一段时间)。

现在还要将文件路径设置在 c:\temp\docs 的位置。然后在查询工具中按 F5 键执行,或从 Data Hub 运行脚本。

关于exact-online - 如何使用 Invantive Query Tool 从 Exact Online 仅下载我的采购发票文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46366297/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com