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
vivek ravivivek ravi 

hi i need add task fields and want to update in the custom record fields

i have custom object name milestone and i have fields in tha called percentage
i have created custom fields in task name has percentage
now what i need is when ever im creating the task for particular milestone  record. the milestone record fields percentage has to be update with the sum of the percentage field in the task, when ever im creating new task the milestone record percentage fields has to be change

can any suggest me any code for this are any blogs  
Ramu_SFDCRamu_SFDC
Hi Vivek, I just came across one of the posts that has the solution to your request. It is almost similar request but with few changes.

Below is the link to the post
https://developer.salesforce.com/forums/ForumsMain?id=906F000000092GnIAI

In the above post in the code part, change the whoid to whatid as we are not dealing with contact or leads.

Hope it helps !!