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
Pooja Gupta 54Pooja Gupta 54 

I have created a VR on one of the fields on opportunity but I dont want that VR to get fired while converting the lead to an opportunity. This there a way to prevent this from happening as currently its getting fired on converting.

Narender Singh(Nads)Narender Singh(Nads)
Hi,
There is no standard way to skip the validation rule.
But what you can do as a workaround is:
Create a custom field on Lead Object with boolean(checkbox) type, say IsLead__c and default value as true.
Now create a custom field on Opportunity Object with boolean(checkbox) type, say isLeadOriginated__c.
Now map IsLead__c to isLeadOriginated__c  from "Map Lead Fields".

Now restructure your Validation formula like this:
( Your Complete formula ) && isLeadOriginated__c=False