web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Deleting a Lead Source

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    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

  • Suggested answer
    Community Member Profile Picture
    on at

    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

    http://www.francescopicchi.com

  • Suggested answer
    TheMarkChristie Profile Picture
    10,328 Moderator on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans