Skip to main content

How to delete RecordType in salesforce

Do you think is there any difficulties in deleting record types in salesforce?.
Many of them think 'No', Initially I too thought like that when tried to delete, then I realized the difficulties.

Certain Profiles like the Chatter Free User can be assigned Record Types which cannot be removed by clicking an edit link in the Record Type Section of the Profile. This prevents Record Types from being deleted. In order to remove the record type from the Profile a URL 'Hack' must be performed.

First, the Enable Enhanced Profile User Interface checkbox in the User Interface must be deselected:


Setup> Customize> User Interface> Setup Section> Deselect  Enable Enhanced Profile User Interface> Save

Proceed with the following Steps:

1)Please follow this click path:

Setup> Manage Users> Profiles> System Administrator> Navigate to Record Types> Click the Edit Link on the Object in question's Section

At this Point you will be at the Edit Record Type Settings Page for the Object.

2)Copy the URL from the adress bar on your browser and paste it into note pad:

https://naX.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=xxxxxxxxxxxxxxx&tid=Opportunity&pn=System+Administrator&retURL=/xxxxxxxxxxxxxxx

3)Now follow this click path

Setup> Manage Users> Profiles> Chatter Free User

4)Copy the 15 digit Salesforce Id from the URL in the Adress bar of your Browser:

yyyyyyyyyyyyyyy

5)You are now going to replace the id in the Edit Record Type Settings Opportunity Page ( the first id number right after the "jsp?id=" in the URL ) with the Id from the Chatter Free User.

This:
https://naX.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=xxxxxxxxxxxxxxx&tid=Opportunity&pn=System+Administrator&retURL=/xxxxxxxxxxxxxxx

Should now look like this:
https://na5.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=yyyyyyyyyyyyyyy&tid=Opportunity&pn=System+Administrator&retURL=/xxxxxxxxxxxxxxx

xxxxxxxxxxxxxxx was replaced with yyyyyyyyyyyyyyy

6)Now take the modified Url and place it in the Adress bar of your browser and hit enter.


*************This will seem to have taken you to the System Administrator's edit page but you are in the right place.******************

7)You will now be able to remove the value by highlighting it and selecting remove. Switch the Default record type to whatever you like and hit save.


All you need to do now is repeat this for any other Profiles in which it is necessary, then Deactivate and Delete the Record Type.


This is took from salesforce knowledge article


Comments

  1. I really enjoy the blog.Much thanks again. Really Great. salesforce training

    ReplyDelete
  2. It was fun doing this!!
    Thanks a ton for this article :)

    ReplyDelete
  3. How do you remove an account record type without "replacing it with another record type?" I added a record type when I didn't need one, and now I need to remove it completely (without replacing it). In other words I do not want any record type associated with an Account. When I follow the steps above and remove it, I get an error saying "At least one record type must be selected."

    ReplyDelete

Post a Comment

Popular posts from this blog

Avoid Duplicate Records Using Flow

In this blog post lets see how to avoid duplicate records in Salesforce using the powerful feature – Flow , As the word says, flow easily flows to fulfill the requirements with ease. ☺  Many think of appexchange solutions and source code to avoid the duplicate record in salesforce, But the method I'm going to explain here is completely different and very simple. It helps you to reduce your code and can easily rebuild for other objects with different field logic with simple clicks. Lets jump into the solution, we will use flow to check duplicate record logic and use apex trigger to initiate the Flow whenever a record is created or updated. Visual Work Flow : [Click] First we will create the Flow to check the duplicate records based on the name and store the result in the variable. In this example, we will use the Account object for the dupe check. Step 1  : Create a new visual flow with the Name ‘ DuplicateAccountCheck ' Step 2  : Click and drag the RecordLookup into t

Plan your Dreamforce with “Dreamforce Trail”

Salesforce has many good resources for anybody looking to begin Salesforce as beginner, Intermediate or Advanced. Trailhead is also one among the good resource to learn salesforce and my favorite too. I have also written blog post about Trailhead & my favorite module   This  blog post covers an interesting and helpful Trailhead module. Yes Its all about ' Dreamforce Trail ', if you are a Dreamforce Attendee, then I strongly recommend you to take a look into this Trailhead module. No Admin skill or No Developer skill is required for this module.Start winning Badges and is gamified so it motivates you to reach more badges and finally you end up gaining knowledge on Salesforce. Why do we have Dreamforce Trail module in Trailhead?  To help people who is coming to dreamforce for the first time and to plan well for the events. Dreamforce is a tech feast for anybody. Dreamforce is salesforce festival. If you don’t plan well, you will miss something highly helpful . This Dre

Export records from List view – ListView API

As part of the Winter’15 release salesforce introduced the List View API features which helps us to get details and records of list views for an object. I was started exploring more about the List view API and trying to build an use case using that. So I searched about List View in the IdeaExchange site then found that many users are looking for a solution to export records to excel directly from the list view. I built a solution for that Idea, which helps user to download all the records directly from the List view for both standard and custom object. You don’t have to make any change in the code to use this functionality for different objects. All you need is to create a custom button for that object as mentioned below. Lets take an example for Account object 1. Go to Setup –> Accounts –> Buttons, Links and Actions 2. Click ‘New Button or Link' 3. Enter  Label, Name and select display type as ‘List Button’ 4. Content source as “Onclick Javascript” and paste the