I have a requirement where I have a parent "account" with some child records - a custom entity. The child records have a money field which rolls up to the parent account.
Normally I would build a plugin for this but I thought I would try out a sync workflow because it seemed faster to develop.
I wrote a WF Activity which takes the Account and returns the Amount which I when copy into the appropriate account field. The WF runs from the child entity on create, update and delete.
It works "mostly" well and has been quick to develop.
However, for the "Record is Deleted" event, the drop down which allows you to select "After" is greyed out so my total is wrong when a record is deleted because it is still included in my total.
- Anyone know why this drop down is greyed out?
One other question: I had hoped that by working synchronously I might be able to have the total on the Account form refresh as records in the sub-grid are changed. Optimism on my part. It isn't working unfortunately. Should I be using a different approach?
I seem frustratingly close using a very simple method. It would seem a shame to have to go back to JScript and a Plugin. My WF Activity has 2 lines of actual logic (not including a couple of simple get functions). The other way I am used to is much more than that.