You need to sign in to do that
Don't have an account?
KCarmen
How to create a field on an opp that shows status of most recent activity
Hi All -
I am looking to bring in the task status of the most recent task activity (which is a particular record type, btw) onto the opportunity record. How can I do this?
I thought about a roll-up field but can't do that out of the box
I thought about Process Builder but can't seem to use that either
I thought about a cross-object formula field with a field update
What I need is to view what the current status is on a particular Task record type's most current record any time it is updated.
Any suggestions?
I am looking to bring in the task status of the most recent task activity (which is a particular record type, btw) onto the opportunity record. How can I do this?
I thought about a roll-up field but can't do that out of the box
I thought about Process Builder but can't seem to use that either
I thought about a cross-object formula field with a field update
What I need is to view what the current status is on a particular Task record type's most current record any time it is updated.
Any suggestions?
I am pretty sure this is not possible with a standard functionalitie since there are lots of different types of functionalities involved such as checking/sorting the most recent date, checking After Delete operation, After UnDelete Operation, etc...
However, this is absolutely possible via Apex Trigger.
I would suggest the following approach,
1) First have a field named Most_Recent_Task_Status__c On an Opportunity Object's Pagelayout
2) Have this trigger on Task Object (Go to Task Triggers).
Trigger Code:
What does trigger does,
Let's say you have 5 tasks under an Opportunity record and all with the different dates. Trigger is going to take the most recent task record's Status and puts it under the "Most Recent Task Status" field.
Trigger is also taking care all the consitions such as After Delete, After Undelete etc.. This is After Trigger so it fire right after you save the task record for a particulat opportunity.
This is how the final output look like,
I hope this helps and if it solves the question then please mark it as best answer since it will help other users in community as well.
Thank You, OEMGirl!
All Answers
I am pretty sure this is not possible with a standard functionalitie since there are lots of different types of functionalities involved such as checking/sorting the most recent date, checking After Delete operation, After UnDelete Operation, etc...
However, this is absolutely possible via Apex Trigger.
I would suggest the following approach,
1) First have a field named Most_Recent_Task_Status__c On an Opportunity Object's Pagelayout
2) Have this trigger on Task Object (Go to Task Triggers).
Trigger Code:
What does trigger does,
Let's say you have 5 tasks under an Opportunity record and all with the different dates. Trigger is going to take the most recent task record's Status and puts it under the "Most Recent Task Status" field.
Trigger is also taking care all the consitions such as After Delete, After Undelete etc.. This is After Trigger so it fire right after you save the task record for a particulat opportunity.
This is how the final output look like,
I hope this helps and if it solves the question then please mark it as best answer since it will help other users in community as well.
Thank You, OEMGirl!
Thanks again!!!