You need to sign in to do that
Don't have an account?

Opty field value update in the Task Comments Field
Hi Team,
How to populate the opty field value in the Task object comments field.Let's say we have a field called Description,whenerver we are entered in the description field same comments it should be populate in the Task comment field.
How to acheive this one.
Thanks in Advance
How to populate the opty field value in the Task object comments field.Let's say we have a field called Description,whenerver we are entered in the description field same comments it should be populate in the Task comment field.
How to acheive this one.
Thanks in Advance
You might achieve this with Triggers. Create trigger on Opportunity, When ever opty field is updated, get all tasks on Opportunity and update the value in Task comments. You can filter tasks related to Opportunity based on WhatId.
Hope this helps.
Please mark as best answer if this helps!
Thanks for your suggestions.
We written a trigger on opportunity as working expected but i want to include Due date in this trigger Which means DueDate = CreatedBy + 7 days. How to acheive this one .Please find bit of trigger.
if(Trigger.isUpdate){
Map<Id,Opportunity> oldOppMap = Trigger.oldmap;
for (Opportunity Opp: Opps){
//Check If description got changed
if(Opp.Helps__c != oldOppMap.get(opp.Id).Helps__c ){
Task t = new Task();
t.WhatId = opp.Id;
t.Subject = 'Help' + ': ' + opp.Name;
t.Description = opp.Description__c;
taskList.add(t);
}
Please help us that would be great.
Thanks in Advance
You can also use Flow with process builder to handle it.
t.ActivityDate = opp.CreatedDate.addDays(7); //If you want set due date after 7 days of opportunity creation date
OR
t.ActivityDate = DateTime.now().addDays(7); // to set 7 days after task creation date
Thanks,
Uday