Sharepoint 工作流程任务附件

发布于 2024-07-26 22:55:59 字数 223 浏览 1 评论 0原文

我有 SharePoint 状态机工作流程(Visual Studio 2008),在特定状态下我创建任务。

当用户完成此任务时,他可以上传文档作为此任务的附件,

然后工作流程转到

第二状态中的另一个状态我为另一个用户创建新任务,它将看到上一个任务的先前附件

,我尝试查看要读取的 SPWorkflowTaskProperties 的属性附件,但我没有找到任何东西

I have SharePoint state machine work flow(Visual Studio 2008) , in specific state i create task .

when user finish this task he can upload document as attachment for this task

then work flow goto another state

in second state i create new task for another user which will see the previous attachments of last task

and i try to see the properties of SPWorkflowTaskProperties to read attachment but i didn't find any thing

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

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

发布评论

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

评论(2

ゞ记忆︶ㄣ 2024-08-02 22:55:59

假设您想要获取实际的附件(而不是附件的链接),您可能必须直接从库中获取它:

http://www.binarywave.com/blogs/eshupps/Lists/Posts/Post.aspx?ID=26

从上面:

SPFolder folder = web.Folders["Lists"].SubFolders[list.Title].SubFolders["Attachments"].SubFolders[listitem.ID.ToString()];

foreach (SPFile file in folder.Files)
{
  // Something useful here
}

Assuming you want to get the actual attachment (as opposed to a link to the attachment) you will probably have to get it from the library directly:

http://www.binarywave.com/blogs/eshupps/Lists/Posts/Post.aspx?ID=26

From the above:

SPFolder folder = web.Folders["Lists"].SubFolders[list.Title].SubFolders["Attachments"].SubFolders[listitem.ID.ToString()];

foreach (SPFile file in folder.Files)
{
  // Something useful here
}
执笔绘流年 2024-08-02 22:55:59

我通过上传附件作为常规列表项附加到任务列表项来完成此操作。 我不是从工作流程中执行此操作,而是从编辑任务的任务表单中执行此操作。

I did it by uploading an attachment to be attached to the Task List item as a regular list item. I didn't do it from the workflow process but from the task form that edits the task.

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