We have a set of SharePoint designer workflows that "communicate" with an event receiver on the list via changes to site column values. მაგალითად, if a site column "SetDuedate" არის მითითებული, რომ ჭეშმარიტი მიერ workflow, ღონისძიება მიმღები აღმოაჩენს, რომ ცვლილება, ითვლის ვადები და ავალებს, რომ ვადა კიდევ ერთი საიტი სვეტი, "Due Date." We split things up like this because the event receiver can calculate a due date using complex business rules (taking weekends and company holidays into account) while SPD really can not.
In one specific instance, we ran into a problem with this trick. Debugging all this is pretty difficult, but we came to the definite conclusion that in one case (სულ მცირე), the event receiver was not running all the time. In one step of the workflow, we would change the value of a site column and the event receiver didn’t appear to run. თუმცა, it was running consistently in a different step of the workflow.
After reviewing it, I noticed that the happy workflow step used the "Update List Item" while the other step used "Set Field in Current Item." Update List Item was updating the "current item." I’m not sure why we picked one over the other since they would seem to be doing the same thing.
ასე რომ, … the Update List Item action did cause the event to fire. მეორე მხრივ, the Set Field in Current Item action did not.
I used Update List Item in both places and viola! It worked. [[ Total aside, I played the violin for on a daily basis for almost 15 წელი ]]
From this, I tentatively believe that the "Set Field" action does not cause event receivers to fire, at least some of the time.
This issue bedeviled us for weeks.
This is one of those "observed behavior" posts. I observed this happen once in a specific environment and I’m making some guesses as to why things happened as they did. If you have any insight into this one, please share in the comments.
</ბოლო>
მადლობა..
http://www.sskbank.com
Hi პოლ
i also would like to ask you the same question, which is being asked in upper comment.
მადლობა
Deepak