I have multiple record types on the Lead object. I am trying to query and get the correct converted lead status, but since I have multiple converted statuses due to using lead processes I am having trouble getting the correct value.
This query returns the first record it finds, which isn't the one I want. How can I get the correct MasterLabel based on the Lead Record Type?
SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true LIMIT 1