function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NBP1411NBP1411 

Validation Rule for Leads and Campaigns

Hi all,

I am trying to create a validation rule inside Leads requiring that if the Conference Name field is filled in, that a Campaign is tied to the Opportunity. For some reason this validation rule formula is not letting me convert leads even when I have Conference name filled in and a Campaign tied to the Lead. Any suggestions?
AND(NOT(ISBLANK( Conference_Name__c )), 
(ISBLANK( Campaign.Name )))
Tarun J.Tarun J.
Use  ISBLANK( CampaignId )  instead of  ISBLANK( Campaign.Name ).

-Thanks,
TK

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
NBP1411NBP1411
An error keeps popping up, Tarun. I have tried ISBLANK with ID and Name for Campaigns. I almost think logging a ticket to tech support will suffice.
Tarun J.Tarun J.
You mean to say, even though 'Conference Name' and 'Campaign' fields are populate, still system is showing error message?

Can you please share the updated Validation rule criteria? 

-Thanks,
TK
NBP1411NBP1411
Correct.

AND(NOT(ISBLANK( Conference_Name__c )), 
(ISBLANK( CampaignId )))