MK Partners Archive for November, 2007

Hidden Profile causing problems

Working on a client’s project, one of our consultants was unable to deactivate an Opportunity Record Type that was no longer needed.  The error message stated that the Record Type could not be deactivated because it was the default Record Type for a Profile named “Salesforce Administrator”.

Normally, this wouldn’t be a big deal, we would go to the Profile and change the default Record Type.  Unfortunately, this is no ordinary Profile.  It is a hidden, API Only User, standard profile that is not displayed on your list of Profiles and does not even have an Opportunities option in its Record Type section.  This posed quite a problem, as we really wanted to deactivate this Record Type.

Hidden Profile

The solution, we took the URL for editing the Opportunity Record Type on another profile and replaced the Profile Id and Profile Name with that of our hidden profile.  The format of the URL is below, we’ve replaced our actual Profile Id with {!Profile.Id}. 

https://na1.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id={!Profile.Id}&tid=Opportunity&pn=Salesforce+Administrator

This type of URL handywork can be used in a variety of places in Salesforce and is a good trick to have.