Discussion:
Update total in parent records when Deleting a child item.--- urge
(too old to reply)
Sourab Gupta
2010-05-12 19:50:04 UTC
Permalink
I have two entities in CRM Po and Po Detail with Po having an attribute
new_pototalamount
that is actually a total of all the items in Po details.

Now my problem is when a Po detail line is deleted , the
total(new_pototalamount) is not calculated automatically.

The Po Detail has Poid in its attributes (it forms like a parent child
relationship some thing like Order and Order Product Records

How do i do that.

Thanks in Advance
AdamV
2010-05-13 14:55:27 UTC
Permalink
Would a workfow triggered on the deletion be any use?
Or do you need to be able to guarantee the recalculation is done
instantly (if deleting the detail item fro mthe associated view of the
parent record for example, in which case a plugin might be more appropriate)
Post by Sourab Gupta
I have two entities in CRM Po and Po Detail with Po having an attribute
new_pototalamount
that is actually a total of all the items in Po details.
Now my problem is when a Po detail line is deleted , the
total(new_pototalamount) is not calculated automatically.
The Po Detail has Poid in its attributes (it forms like a parent child
relationship some thing like Order and Order Product Records
How do i do that.
Thanks in Advance
Loading...