支持 SharePoint 电子邮件的文档库上的工作流存在问题

发布于 2024-08-21 10:30:33 字数 621 浏览 4 评论 0原文

SO ...这是场景...我在文档库上有一个工作流程,它将文件复制到 Windows 目录...此工作流程设置为在将新项目添加到文档库时启动...所以当您手动将文件上传到文档库时一切正常...但是当我们使用电子邮件填充文档库而不是手动上传文件时就会出现问题。 收到电子邮件时...工作流程成功启动并正常运行(我保留了工作流程历史记录条目以检查代码的每个部分是否正在执行)...当文件被复制到的部分时工作流程停止已到达 windows 文件夹。

我基本上认为这是权限或访问问题的问题。因为当我们手动上传文件时(即从文档库>上传)一切正常。但也许还有一些其他权限集在文档库收到电子邮件时使用...我尝试过向 Windows 文件夹上的“每个人”分配权限...但没有运气...

有人可以让我吗知道文档库收到电子邮件时使用哪个 Windows 用户帐户? (我认为它是 IIS 默认帐户 - 但它不是包含在每个人中吗?)

我可以想到的一种解决方案是,对于将文件传输到 Windows 文件夹,我应该对特定代码段使用临时模拟(其中写入doc 库文件到 windows 文件夹)但欢迎任何建议。

PS我现在无法访问服务器,所以我只能在脑海中设计方法......无法在西北测试它们......所以最好能得到你所有的建议,这样一旦我获得访问权限,我就可以尝试所有的东西:D

SO ... here is the scenario ... i have a workflow on a document library that copies a file to a windows directory ... this workflow is set to be started at the time when a new item is added to the document library ... so everything works fine when you are manually uploading files to the doc library ... but the problem occurs when we use emails to populate the doc library instead of the manual uploading of files.
When an email is received ... the workflow starts successfully and runs properly (i have kept workflow history entries to check every section of code is being executed or not) ... the workflow stops when the section where the file is being copied to the windows folder is reached.

I basically think this is a problem with the permissions or access issues. Because when we upload the file manually (i.e. from doc library > upload) everything works fine. But maybe there is some other permission set which is used while an email is received by the doc library ... i have tried by assigning permissions to "Everyone" on the windows folder ... but no luck...

Can someone let me know which windows user account is used when an email is received by a document library? (i think its the IIS default account - but isnt it included in Everyone?? )

One solution which i can devise in my mind is that for the file transfer to the windows folder i should use temporary impersonation for the specific code segment (which writes the doc library file to windows folder) but any suggestions are welcome.

P.S. I dont have access to the server right now so i can only devise approaches in my mind ... cant test them right nw... so it would be good to have all suggestions u have so that once i get the access i can try all stuff :D

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幸福还没到 2024-08-28 10:30:33

这是众所周知的情况。系统不知道是谁发送了电子邮件,因此它无法冒充不了解的用户。

根据您运行的 SharePoint 版本,工作流可能根本不会启动,或者可能在发布工作流的帐户下启动。

有关详细信息,请参阅此 Microsoft 支持文章

This is a well known situation. The system does not know who sent the email so it cannot impersonate a user it has no knowledge about.

Depending on which version of SharePoint you are running, the workflow may not start at all or it may start under the account that published the workflow.

For details see this Microsoft Support Article.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文