You need to sign in to do that
Don't have an account?
Need to combine two formulas into one on Opportunity custom field
I have a formula field where I need to return varying values based upon an opportunity with or without a related campaign. IF my opporunity has NO campaigns, I need to use this forumla.
Scenario ONE has no syntax errors:
IF(CampaignId = null && CustomField__c <> null, "Value 1", "Value 2")
If my opportunity has a campaign, I need to add this logic:
Scenario TWO has no syntax errors:
CASE(
Campaign.Type,
"Direct Mail","Direct Mail",
"Email","Email",
"Trade Show","Trade Show",
""
)
I'm trying
CASE(
CampaignId = null && CustomField__c <> null, "Value 1", "Value 2"),
Campaign.Type,
"Direct Mail","Direct Mail",
"Email","Email",
"Trade Show","Trade Show",
""
)
)
Error: Syntax error. Extra ','