开发者

getting access to the SharePoint List that kicked off a workflow

I've been told that I need to reference the SPWorkflow ParentItem. I'm not sure 开发者_如何学Goon the syntax though. Can anyone help?


http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowactivationproperties.list.aspx


If you're inside the workflow itself then your workflow will have a "workflowProperties" object and will be of the type referenced in zincorp's answer.

You'll need to get its .List property or .ListUrl or even .ListId and then you'll be able to get at the SPList.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜