Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am a workflow newbie so please forgive me if this is a naive question, but is there a way to programmatically get a reference to the selected item(s) of the list that initiated the workflow, in a sandboxed solution?

I'd like to be able to preform actions on each list item who's checkbox is selected when the user executes a workflow. Seems like this should be easy, though I cannot find a straight forward was of accomplishing this, I feel like I missing something.

share|improve this question
add comment

1 Answer 1

If inside the workflow you can use SPWorkflow.ParentList

If not in the workflow then you need to implement an SPWorkflowEventReceiver in SPWorkflowEventReceiver.WorkflowStarted you can use properties.ActivationProperties.Item

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.