Currently I have the following workflow set to run anytime the record is created or edited witih the following formula, but it doesn't work the way I expect it to because if the user changes the value from Complete --> Planned --> Complete it would update the 'Actual Date Complete' twice. Any help would be appreciated!
FORMULA:
OR(
AND (ISNEW(),ISPICKVAL(Call_Status__c, "Complete")),
AND(ISPICKVAL(Call_Status__c,"Complete"),ISPICKVAL(PRIORVALUE(Call_Status__c),"Planned")),
AND(ISPICKVAL(Call_Status__c,"Complete"),ISPICKVAL(PRIORVALUE(Call_Status__c),"Cancelled"))
)
2 respuestas
Since its possible that a person updates this record to that field many times, you need some way to track the history. In this case, since the field is storing dates the whole time, you need to flag the first time that your Status achieves Complete. You could use a separate date field for "First Time Complete", a check box for "Has reached complete", or a number for "Times Completed". Then have the logic check your new box to see if it is the first time.