SharePoint Designer Workflow, Tukio kupokea na “Update Orodha ya Bidhaa” dhidi ya “Kuweka Field katika Item sasa”

We have a set of SharePoint designer workflows that "communicate" with an event receiver on the list via changes to site column values. Kwa mfano, if a site column "SetDuedate" ni kuweka kweli kwa workflow, receiver tukio hutambua kwamba mabadiliko, mahesabu ya tarehe kutokana na inateua kwamba tarehe ya safu ya tovuti nyingine, "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 (angalau), 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. Hata hivyo, 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.

Hivyo … the Update List Item action did cause the event to fire. Kwa upande mwingine, 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 miaka ]]

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.

</mwisho>

Kujiunga na blog yangu.

Tags technorati:

3 mawazo juu ya "SharePoint Designer Workflow, Tukio kupokea na “Update Orodha ya Bidhaa” dhidi ya “Kuweka Field katika Item sasa”

  1. Hakuna jina
    Hi Paulo,
    Nice blog you got there.. One quick question for you..
    Update List Item is supposed to be for updating any list item on the same sharepoint site..right?
    Kwa ajili yangu, it only works for the same list (just like Set Field in Current Item).. So what do I use for updating values from a different list?
    Shukrani.
    Honeyhline~
    Kujibu

Kuondoka Jibu kwa Deepak kufuta reply

Anwani yako si kuchapishwa. Mashamba required ni alama *