Skip to main content
Vipin Kumar (EdCast) 님이 #Data Management에 질문했습니다

Hello SF Community, 

 

I have a formula question... I have created the following validation rule on the Opportunity Products to restrict Users from adjusting the Sales Price below what is permitted when adding Products for an Opportunity: 

 

OR(

 

AND( Product2.Name = "Band 1", UnitPrice < 7500),

 

AND( Product2.Name = "Band 2", UnitPrice < 8400)

 

)

 

What do I need to add to have this only trigger for Products with USD currency? 

 

I'm assuming an IF formula needs to be created, but I can't seem to get it right. 

 

Also, how can I have this trigger for certain users? For example, I would like to have this trigger for those with Profile "Sales" and not for "Manager" or "Salesforce Admin." 

 

Thanks, 

Boshra

답변 2개
  1. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    2021년 1월 20일 오전 10:19
    Hi Boshra,

     

    You could try this:

     

    AND(

     

    ISPICKVAL(CurrencyIsoCode ,"USD"),

     

    $Profile.Name="Sales",

     

    OR(

     

    AND( Product2.Name = "Band 1", UnitPrice < 7500),

     

    AND( Product2.Name = "Band 2", UnitPrice < 8400)
0/9000