Skip to main content
Phil Drummond 님이 #Data Management에 질문했습니다
Hi,

 

My current Quote Line Item Validation Rule is to not allow discounts on products that have a custom field of "No Discount" checked.

 

The rule looks is currently:

 

AND  (  Product2.No_Discount__c = TRUE,  Discount >0 )

 

What I'd like to do is extend this rule to respect the Account Type.

 

Something like 

 

AND  (  Product2.No_Discount__c = TRUE,  Discount >0, Account.Type <> "Reseller" )

 

When I click the [Check Syntax] button, I get "Error: Field Account does not exist. Check spelling."

 

How can I extend my Quote Line Item Validation Rule to check the Account Type value?

 

Thanks in advance
답변 2개
  1. 2013년 11월 26일 오후 10:26
    Hey Phil,

     

    Try adding this to your rule:

     

    AND  (  Product2.No_Discount__c = TRUE,  Discount >0,NOT(ISPICKVAL(Quote.Opportunity.Account.Type, "Reseller")))

     

    That should do it if I am using the proper path.

     

    Give it a shot and let us know!

     

    Best of luck!
0/9000