My company has two lead sources that are marked as *do not use* if we delete them from the list rather than keep them there what happens to the leads that had those options in the lead source field?
*This post is locked for comments
My company has two lead sources that are marked as *do not use* if we delete them from the list rather than keep them there what happens to the leads that had those options in the lead source field?
*This post is locked for comments
Hi Eric
What I would do is have a look at your data and see if any records are using the *DNU* attribute - see who owns the record and if they can be changed (or make a business decision to change them) then you can go into the solution and remove the value from the option set list
Hi Eric,
LeadSource is the typical attribute used as list instead of record.
If you can, replace it with a new entity ("new_leadsource").
If you want to quick solve your problem, you could use the following code on form load:
function FormOnLoad() { var leadsource = Xrm.Page.getAttribute('leadsourceattribute').getValue() if (leadsource != 100000001 && leadsource != 100000002) { Xrm.Page.getControl('leadsourceattribute').removeOption(100000001); Xrm.Page.getControl('leadsourceattribute').removeOption(100000002); } }
Please let me know.
If you found the answer helpful, please mark as Verified
Join my network on LinkedIn Follow me on Twitter
Thank You & Best Regards
Francesco Picchi
Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY
Independent Contractor
once you delete that option from optionset , the records will have the null value left on that field instead of the value you deleted & other values from optionset will be as it is on the records.
mark my answer as verified if helpful
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156