Sharepoint 设计器工作流程中添加了什么?
我是共享点新手。您能否举例说明 sharepoint 设计器工作流程中添加了什么以及如何构建它?您能给我提供任何代码或有用的链接吗?我们可以使用 SPD 工作流程循环遍历列表吗?
I am new to sharepoint. Can you please explain with example what is add in for sharepoint designer workflow and how to build it ? Can you please provide me any code or useful link? Can we be able to loop through a list using a SPD workflow ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SPD 自定义操作是您要查找的术语 - SP2007 代码示例 此处(您没有说明是哪个版本的 SharePoint,但过程是相同的)。
您无法使用正常的工作流程循环遍历项目,它是一个事件驱动的流程。因此,您可以启动创建或编辑列表或库中的项目的工作流程。当事件触发时,您将获得引发该事件的项目的上下文。
至少从理论上讲,您可以编写一个自定义操作来循环遍历列表中的所有项目,但这不是一个好主意。如果您想循环遍历项目列表,那么计时器作业可能是更好的方法?
An SPD custom Action is the term you're looking for - SP2007 code example here (you didn't say which version of SharePoint but the process is the same).
You can't loop through items with a normal workflow, its an event driven process. So you can start a workflow on creation or edit of an item in a list or library. When the event fires, you have the context of the item that caused the event.
In theory at least, you could write a custom action that did loop through all items in a list but that wouldn't be a very good idea IMHO. If you wanted to loop through a list of items, then perhaps a timer job might be the better approach?