+ Start a Discussion
Globe Salesforce AdminGlobe Salesforce Admin 

Trying to update a field in a parent record with informatio​n from a field in related list records


I would like to update a field on my parent record (Campaign), based on a filed  value in a related list/child object (Service Requests). Is this possible?


Salesforce provides Rollup Summary field for parent object if you are using Master-detail relationship. If Rollup summary field will not work for your requirement, you need to write a trigger on related list object (child object) to implement this functionality.



Kamlesh Chauhan, (Founder & CTO, LogicRain Technologies)

kamlesh@logicrain.com || http://www.logicrain.com || LinkedIn


Answers/Suggestions are my own.
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.


if you want to perform aggregate functions i.e sum of related records, maximum , minimum, avaerage of any field from related records than you simply use roll up summary else you have to write a trigger that will do this for you..