function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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

Hi,

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?

kamlesh_chauhankamlesh_chauhan

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.

 

Regards,

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.

murtaza_home1.3506704062330244murtaza_home1.3506704062330244

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..