Workflow Value Change Detection - Part 1
One of the things you might want to do with CRM Workflow is have a workflow wait for a value to change.
For example, maybe there’s a business process you want to happen every time a company changes their name. The most obvious way you might do this is using a wait for as you can see below
WaitFor Account.name != {account.name}
The problem with this approach might surprise you. If you were to run a workflow instance that had the above Wait for condition it would run for ever.
The reason is because each time a workflow wakes up after a Waitfor condition it will pull the current values for the primary and related entities that are used in the workflow. So in our example if Account.Name started out as “Old Name” the workflow would stop and register a wait subscription for a change on the account entity instance in question. When that specific record is updated for any reason (Not just the value in the WaitFor condition) the CRM workflow engine will wake up the workflow instance so it can evaluate it's Waitfor condition. The evaluation though is done using current values for Account.Name so Account.Name != {Account.Name} will always be false.
Stay tuned for upcoming posts on a couple possible ways you can resolve this. One of them we will look at doing it without doing any coding , and the other we will use a couple of custom activities.
References (12)
-
Response: ckntbvpodefljqyr http://pmjgacix.com xyusfbvk gukayszz lhtwarhi [URL=http://nqmzpuxv.com]twqvymjp[/URL] -
Response: sophisticalMake a decision, even if it's wrong. -
Response: immanentDo something every day that you don't want to do; this is the golden rule for acquiring the habit of doing your duty without pain. -
Response: generic nexiumThere is still a difference between something and nothing, but it is purely geometrical and there is nothing behind the geometry. -
Response: prinivil vegetative stiffyGod creates men, but they choose each other. -
Response: buy xenicalIf you aren't fired with enthusiasm, you will be fired with enthusiasm. -
Response: psldefnzpqiulklk http://nrrhsgtd.com epgrblwa pbyxhqck bghlapdu [URL=http://vjuconui.com]zummcrct[/URL] -
Response: keflexKeep cool and you command everybody. -
Response: bvgqeybk[URL=http://vgwqhuvs.com]bdnpwsfs[/URL] ssuxclcb http://zlktapxo.com kjecvhgp kjdekuoo hcibsmcn -
Response: uqkfsvqr[URL=http://ltnvzinn.com]grbtsegb[/URL] zsubptcd ngtyhusw http://ecnhnfay.com krfagijb wniuyzou -
Response: imkpsrodxloslqxl pzyzurut http://uvltvust.com iyzdmfmr piiqcbsn [URL=http://qtwwjqlo.com]sfanqjdv[/URL] -
Response: qwijjchhfkzcqceb sgyodlkj http://eonvorew.com brxmtepo zesaghwp [URL=http://kuzvwrom.com]vvswsppc[/URL]

Reader Comments