Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
Unless Lead status has a certain value, I need to prevent the user from converting it to an opportunity. How can I do this?
Two options for you
1) You can achieve this with this validation rule
AND(IsConverted , NOT( ISPICKVAL( Status , 'Closed - Converted')))
2) You can also write a trigger as well
trigger validateConvertedLead on Lead (before update) { for(Lead convertedLead: Trigger.new){ if(convertedLead.IsConverted == TRUE && convertedLead.Status != 'Closed - Converted') { convertedLead.addError('Lead Can not be Converted'); } } }
This Validation Rule and Trigger both will only allow only "Closed - Converted" Lead Status to be converted.
Let me know if any issues in it.
Two options for you
1) You can achieve this with this validation rule
2) You can also write a trigger as well
This Validation Rule and Trigger both will only allow only "Closed - Converted" Lead Status to be converted.
Let me know if any issues in it.