+ Start a Discussion
nareshnaresh 

2 objects acount and custom object task which is look up to account

There are 2 objects acount and custom object task which is look up to account and parent acount is having a custom filed number type as 'no of task child records'. And when ever i insert a record in task object the number  should populate in account custom filed 'no of task child records'. If task object is having 10 records den account custom field must show as a number 10. Please suggest me how to achieve this.


Thank in advance.
Frédéric TrébuchetFrédéric Trébuchet
Hi,
As you can define them on any standard object that is on the master side of a master-detail relationship with a custom object, I think the best way is to use a roll-up summary field with type "Count".

Hope this helps,
Fred
 
nareshnaresh
@Frederick

Thanks for ur reply.If it is master relationship then we can use roll-up summary. But howto do it if it is a lookup relationship.??
Frédéric TrébuchetFrédéric Trébuchet
As you don't have any one, my answer seems to be the best ;)