开发者

getting access to the SharePoint List that kicked off a workflow

开发者 https://www.devze.com 2023-01-07 09:15 出处:网络
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.work

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

精彩评论

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