SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to use custom task activity inside while in visual studio 2010 sequential workflow?

I am using custom task activity which is in replicator activity and this is executed inside while condition .

but unfortunately i am not able to get the properties which has been set in workflow .

Note:- If While Condition is removed then it is working fine...

is anyone can provide solution why the values are not set when it is while activity.

Thanks in advance

share|improve this question
Consider having global properties and assign them in the workflow constructor. That way they should be available in the while loop as well. – Grooverinthesouth Nov 29 '12 at 16:39

With the help using Dynamic object of replicator it is now working Just have to changed the below code

private void replicatorActivity1_ChildInitialized(object sender, ReplicatorChildEventArgs e) {

 SPTaskActivity customactivity = (SPTaskActivity)e.Activity;

    customactivity = TaskTitle;
            customactivity = TaskAssignedTo;

and it worked.



share|improve this answer

Your Answer


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.