Skip to main content
I have records in a custom object that are assigned statuses from a picklist... Example:

 

Approved

 

Declined

 

Funded

 

When the status is changed a workflow triggers a field update to a date field... Example:

 

Date Status to Approved - TODAY()

 

Date Status to Declined - TODAY()

 

Date Status to Funded - TODAY()

 

I'm trying to tie the two together so I can pull reports based on the dates the records were assigned the status as opposed to Created Date or Last Modified Date.

 

I've created a date field and am trying to create a formula using the following logic:

 

If the current record status is Approved then the value is Date_Status_to_Approved

 

If the current record status is Declined then the value is Date_Status_to_Declined  

 

If the current record status is Funded then the value is Date_Status_to_Funded    

 

here is my first failed attemp....

 

OR(IF (ISPICKVAL( Application_Status__c   , "Funded"), Status_to_Funded__c ),

 

IF (ISPICKVAL( Application_Status__c   , "Approved"),  Status_to_Approved__c ,

 

IF (ISPICKVAL( Application_Status__c   , "Declined"),  Status_to_Declined__c  ))

 

Any advice would be hugely appreciated.  Thanks.
2 respuestas
  1. 3 nov 2014, 10:16 p.m.
    I would just use a CASE function instead of Nested IF's

     

     

    CASE(Application_Status__c ,

    "Funded", Status_to_Funded__c ,

    "Approved", Status_to_Approved__c ,

    "Declined", Status_to_Declined__c,

    NULL )