You need to sign in to do that
Don't have an account?
Kyriacos
Would a formula or trigger be better?
I have been working on a formula but I cannot make it without exceeding the compile limit. Shown below if a fraction of the formula. Do you know how I could reduce the compile size? Or do you know if a trigger would be better to use? If so, could you give me an example of how to get that trigger started??
I don't believe CASE can be used because the outcome depends on the value in two different fields. Please correct me if I am wrong.
IF( AND( CONTAINS(Domain__c,"DK") , Account_Balance__c < 500), "Prize Draw", IF(AND(CONTAINS(Domain__c,"DK"), Account_Balance__c < 2000,Account_Balance__c > 499 ), "25", IF(AND(CONTAINS(Domain__c,"DK"), Account_Balance__c < 5000,Account_Balance__c > 1999 ), "50", IF(AND(Domain__c = "COM BR", Account_Balance__c < 3000,Account_Balance__c > 599 ), "Prize Draw", IF(AND(Domain__c = "COM BR", Account_Balance__c < 15000,Account_Balance__c > 2999 ), "15", "No Prize")))))
Instead of trigger you can go for workflow field update. Use the same formula. But here the field should not be a formula field, can be a text field (you can make it read only through page layout).
All Answers
Instead of trigger you can go for workflow field update. Use the same formula. But here the field should not be a formula field, can be a text field (you can make it read only through page layout).
Would I not have the same compile limitations?
Nope, workflow field update formula has more characters allowed.
Perfect, I'll give that a try.