AnsweredAssumed Answered

Question of Update item in a Loop

Question asked by klaz on Nov 29, 2016
Latest reply on Dec 1, 2016 by Enrico Knapp

I met a problem when i run a loop. 

I have a form with two columns named "content" and "comment", when user write something in the comment, the workflow will append the comment to the end of content.

So I make a workflow to start a loop. In the loop I do:

1.Wait for item update (wait for comment is not null)

2.Build string (concentrate content and comment and store in a variable)

3.Update item (write variable to the content column)

4.Update item (clear comment column)

5.Commit pending changes

When the loop run the first time it is OK. I write something in the "comment" and it is append to the "content" successfully and the comment is cleared.

When I write something to the comment again, the workflow stop at the "Loop" action, after about 5 minutes, the second loop seems start to run. But it append the same comment twice to the content.

I'd like to ask why the loop not start immediately, and why the action be done twice in one time loop .

Please help me see the question. Thank you.