简体   繁体   English

是否可以将文件名未知的文件附加到电子邮件外部操作?

[英]Is it possible to attach a file with an unknown filename to the Email External Action?

I'm trying to attach a file to the Email External Action in an Automation that always has a different filename (date/time) but is in the same location, and is the only file in the folder.我正在尝试将文件附加到自动化中的电子邮件外部操作,该文件始终具有不同的文件名(日期/时间)但位于相同的位置,并且是文件夹中的唯一文件。

I've added this folder as a resource and tried to use a * wildcard but it fails to send the email.我已将此文件夹添加为资源并尝试使用 * 通配符,但无法发送电子邮件。

If I give the exact filename, the email sends successfully with the attachment.如果我提供确切的文件名,则电子邮件会随附件成功发送。

Also, I can do this successfully using the Emailer transformer in a Workspace and feeding it the exact name via a Text File Reader, but I'd rather use the External Action in Automations if possible.此外,我可以在工作区中使用 Emailer 转换器成功完成此操作,并通过文本文件阅读器为其提供确切名称,但如果可能,我更愿意在自动化中使用外部操作。

The Email External Action does not currently support using a wildcard in the Email Attachment file path.电子邮件外部操作目前不支持在电子邮件附件文件路径中使用通配符。 FME Server sees the asterisk as an illegal character that invalidates the path. FME Server 将星号视为使路径无效的非法字符。

In my testing, the email will still send successfully but without the file attached.在我的测试中,电子邮件仍会成功发送,但没有附加文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM