Taylor
2010-05-21 17:06:01 UTC
I'm not sure if out of the box workflows can handle this or if we need to
build something custom but basically I have the contact entity and a custom
Subscription entity linked via a 1:N relationship (each contact can be
subscribed to multiple subscription records). Each subscription record is
identified by type, which is a drop down of 5 various subscriptions as well
as the person who subscribed them. Therefore a person may have 2+
subscription records for the same subscription but different people are
subscribing them.
What I want to do is have summary fields on the contact record iteself for
each of the 5 subscriptions. So if they have ANY subscription to
subscription A then I want a checkbox on the contact to be marked "yes". If
those subscriptions are deleted I want to mark that box as "no" but only if
ALL subscriptions of that type have been deleted.
The adding part is easy. Whenever a subscription of whatever type is added,
mark the box on the contact for the corresponding type. But the delete is
where I'm having trouble. Can the workflow check to see if other record
exist of the same type instead of just the current record? I thought maybe
using child workflows perhaps.
Any ideas are welcome.
build something custom but basically I have the contact entity and a custom
Subscription entity linked via a 1:N relationship (each contact can be
subscribed to multiple subscription records). Each subscription record is
identified by type, which is a drop down of 5 various subscriptions as well
as the person who subscribed them. Therefore a person may have 2+
subscription records for the same subscription but different people are
subscribing them.
What I want to do is have summary fields on the contact record iteself for
each of the 5 subscriptions. So if they have ANY subscription to
subscription A then I want a checkbox on the contact to be marked "yes". If
those subscriptions are deleted I want to mark that box as "no" but only if
ALL subscriptions of that type have been deleted.
The adding part is easy. Whenever a subscription of whatever type is added,
mark the box on the contact for the corresponding type. But the delete is
where I'm having trouble. Can the workflow check to see if other record
exist of the same type instead of just the current record? I thought maybe
using child workflows perhaps.
Any ideas are welcome.