Skip to main content
I am trying to create a rule that will define a lead status based on the age of the lead (hours).

 

I only want the status to be set for leads with a status other than "New".

 

AND(NOT(ISPICKVAL(Status, "New")),

 

IF(AND(Age_of_Lead_Hours__c >=0,Age_of_Lead_Hours__c <7),"GREEN",

 

IF(AND(Age_of_Lead_Hours__c >6,Age_of_Lead_Hours__c <13),"YELLOW",

 

IF(AND(Age_of_Lead_Hours__c >12,Age_of_Lead_Hours__c <25),"ORANGE",

 

IF(Age_of_Lead_Hours__c >24,"RED","ERROR")))))
3 件の回答
  1. 2013年6月21日 13:20

    IF(AND(NOT(ISPICKVAL(Status, "New")),Age_of_Lead_Hours__c >=0,Age_of_Lead_Hours__c <7),"GREEN",

     

     

    IF(AND(NOT(ISPICKVAL(Status, "New")),Age_of_Lead_Hours__c >6,Age_of_Lead_Hours__c <13),"YELLOW",

     

     

    IF(AND(NOT(ISPICKVAL(Status, "New")),Age_of_Lead_Hours__c >12,Age_of_Lead_Hours__c <25),"ORANGE",

     

     

    IF(AND(NOT(ISPICKVAL(Status, "New")),Age_of_Lead_Hours__c >24),"RED","ERROR"))))

     

0/9000