• Terry_0101
  • NEWBIE
  • 155 Points
  • Member since 2014

  • Chatter
    Feed
  • 1
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 46
    Questions
  • 28
    Replies
How to require certain picklist values, when a date field is populated?
if a user enters a date value into a date field, can a validation field require a specific picklist value?

AND( 
ISBLANK(Ending_Date__c), 
OR( 
ISPICKVAL( Status__c, 'Pink'), 
ISPICKVAL( Status__c, 'Red')))
I have 5 numeric fields.  If any of those have a value greater than 0, then display a YES.
Hi - how to fix this formula?   If record type is Cake, then make it 0.  Then proceed to add up the Amounts 1-3.

IF( 
RecordType.Name = "Cake",0,
(Amount_1__c + 
Amount_2__c +
Amount_3__c)
Hi,
This is a formula field with TEXT data type, but I get this error:    : (

Error: Incorrect number of parameters for function 'IMAGE()'. Expected 2, received 1

IF(
checkbox__c = TRUE,
IMAGE('/servlet/servlet.FileDownload?file=015w0000003GGGG')
)
This validation rule syntax is fine and saves.  But the opportunity record does not error when the Texture__c field is blank.

AND( 
$RecordType.Name = "REDSHOES", 
Probability > 30, 
OR( 
ISBLANK(TEXT( Texture__c )), 
ISBLANK(TEXT( Category__c )), 
ISBLANK( Amount ) 
))
How to fix this?

When lead owner is changed to this certain person, then do not fire the workflow.

AND( 
LEFT(PRIORVALUE(OwnerId), 3) = '00G', 
LEFT(OwnerId, 3) = '005',
NOT(
$User.Id = "00560000004Yjj5"
))
How to divide/multiply a number, and then display values based on the result?

Example:
number__c / 5 * 30

If the answer is below 100, then display "Disappointing"
If the above 101, then display "WOW"
 
How to make a DATE field required if a picklist value has been selected?

How to make this apply to 10 separate picklist fields with its own separate 10 DATE fields?

Or, do I need 10 validation rules for each field?
Hi Gentlemen,

I want to only INCLUDE this Record Type in a formula:   RecordType.Name = "Brazil Deals”


Here is my formula:

January_Revenue__c + February_Revenue__c + March_Revenue__c
How best to exclude a certain record type into this formula:     RecordType.Name = "Brazil Deals"

My formula:

IF(
OR(
Campaign_Start_Date__c>DATE(2016,6,30),
Campaign_End_Date__c<DATE(2016,4,1)),0, 

IF(
AND(
Campaign_Start_Date__c>=DATE(2016,4,1),
Campaign_End_Date__c<=DATE(2016,6,30)),
(Campaign_End_Date__c-Campaign_Start_Date__c+1)*Avg_Daily_Revenue__c, 

IF(
AND(
Campaign_Start_Date__c<=DATE(2016,4,1),
Campaign_End_Date__c>=DATE(2016,6,30)),
(DATE(2016,6,30)-DATE(2016,4,1)+1)*Avg_Daily_Revenue__c, 
)))
This is not working below as a user can still change a picklist value from Business (Legal) to another value.  

1.  How to prevent changing from the these values belowin italics?
2.  Also, how to prevent users from choosing these values?

AND ( 
CASE( Type, 
"Business (Legal)", 1, 
"Retail (Apparel)",1,
0) = 1, 
PRIORVALUE( Type ) <> "Business (Legal)",
PRIORVALUE( Type ) <> "Retail (Apparel)", 
ISCHANGED(Type), 
NOT( 
OR( 
$Profile.Id = "00000000", /*sys admin*/ 
With standard rollups, I can run an accounts & contacts report and include opportunity values per account.  Since I disabled rollups as a result of activating advanced currency, I want to use a trigger to rollup opportunities into accounts.  Then run the same contacts & accounts report.  

This has nothing to do with contact roles.

What is the trigger for this?
Roll ups are disabled in our org due to advanced currency.

Can a trigger be used to count opportunities associated to each contact?
Hi Hi,

If I use CONTAINS, then the letters kent are mixed up with the United Kingdom's Kent state/province.

How to use equals Kentucky instead of contains?

IF(CONTAINS("Kentucky", State )
I'm trying to multiply two formula fields with numbers, but these are text data type, since the orginal fields are picklist.

Here is the error when I try to create a new formula field and multiply both fields:

Error: Incorrect parameter type for operator '*'. Expected Number, received Text
Each custom field below is a numeric value.  I need a formula that adds these in the following pairs as shown below.  How to only add "Tier__c +  Scope__c", if the other pair is null?  And vice versa?

Health__c +  Priorty__c

Tier__c +  Scope__c 
This formula does work here for the State field:

IF(OR(ISBLANK(State)), "",
IF(CONTAINS("Hawaii:Alaska", State),"Pacific",
"")))


How do I add the COUNTRY field?  I want to add this line but the formula fails:

IF(CONTAINS("Australia:New Zeland", Country ), "APAC",
If Opp Name contains the word "VIP", then how to enfore a user to enter the word "VIP" into another field?
How to make these profiles exempt from this Validation Rule?  I tried this but it does not work:   
&& (NOT($User.ProfileId="005A00000015yWV")) 

AND( 
Amount__c > 1, 
ISBLANK(TEXT( type__c )), 
NOT(ISNEW()), 
NOT(OR( 
$Profile.Id<>"00e40000000oRAA", 
$Profile.Id<>"00e4000000132AW", 
)) 
Hi,
This is a formula field with TEXT data type, but I get this error:    : (

Error: Incorrect number of parameters for function 'IMAGE()'. Expected 2, received 1

IF(
checkbox__c = TRUE,
IMAGE('/servlet/servlet.FileDownload?file=015w0000003GGGG')
)
I understand that apex edits are done in sandbox.  However, Eclipse is not compatiable on Macs.

Will Developer Console work?  Or other tools?
if a user enters a date value into a date field, can a validation field require a specific picklist value?

AND( 
ISBLANK(Ending_Date__c), 
OR( 
ISPICKVAL( Status__c, 'Pink'), 
ISPICKVAL( Status__c, 'Red')))
Hi - how to fix this formula?   If record type is Cake, then make it 0.  Then proceed to add up the Amounts 1-3.

IF( 
RecordType.Name = "Cake",0,
(Amount_1__c + 
Amount_2__c +
Amount_3__c)
This validation rule syntax is fine and saves.  But the opportunity record does not error when the Texture__c field is blank.

AND( 
$RecordType.Name = "REDSHOES", 
Probability > 30, 
OR( 
ISBLANK(TEXT( Texture__c )), 
ISBLANK(TEXT( Category__c )), 
ISBLANK( Amount ) 
))
How to fix this?

When lead owner is changed to this certain person, then do not fire the workflow.

AND( 
LEFT(PRIORVALUE(OwnerId), 3) = '00G', 
LEFT(OwnerId, 3) = '005',
NOT(
$User.Id = "00560000004Yjj5"
))
Hi Gentlemen,

I want to only INCLUDE this Record Type in a formula:   RecordType.Name = "Brazil Deals”


Here is my formula:

January_Revenue__c + February_Revenue__c + March_Revenue__c
Roll ups are disabled in our org due to advanced currency.

Can a trigger be used to count opportunities associated to each contact?
Hi Hi,

If I use CONTAINS, then the letters kent are mixed up with the United Kingdom's Kent state/province.

How to use equals Kentucky instead of contains?

IF(CONTAINS("Kentucky", State )
How to make these profiles exempt from this Validation Ruel?

AND( 
Amount__c > 1, 
ISBLANK(TEXT( type__c )), 
NOT(ISNEW()), 
NOT(OR( 
$Profile.Id<>"00e40000000oRAA", 
$Profile.Id<>"00e4000000132AW", 
)) 
Requirement is:
If a "Payment Made" field has a number in it, then do not allow the "Project Date" to be blank.  Here is what I have but not working.

AND( 
TEXT(Payment_Made__c) = "", 
ISBLANK(Project_Date__c))
How to prevent a record save if two fields on an object have same values?
Need a formula that separates the picklist values of the Opp Type field.  Then show the average age of that opp (created date - closed won).

Need a separate formula rather than use the report's summary formula.
I have a custom object with a lookup relationship to accounts.

I need a trigger that updates an account field when a field from the custom object is populated with a value.
How to make this validation rule work?

ISPICKVAL ( Products__c, "ABC"),
OR
ISPICKVAL ( Products__c, "DEF"), 
AND
ISPICKVAL (  StageName , "Evaluation")
OR
ISPICKVAL (  StageName , "Negotiation")
OR 
ISPICKVAL (  StageName , "Sale Pending"),
ISBLANK(TEXT( Cash_Flow_Forecast_report__c )) 
))))
I have this formula where all 3 fields must be true.  However, the last one Source__c should be OR, not AND.  How to change this?

AND (ISPICKVAL ( Type, "Customer" ), ISPICKVAL ( Status__c , "New" ),
ISPICKVAL ( Source__c , "Webinar" ))
Hi all,

field:  Status
picklist values:  new, open, closed

If status equals either new or open, then add a checkmark to another field

I have so far:
IF(ISPICKVAL(case_status__c, "new" ),"Yes","No")