+ Start a Discussion
SandrineSandrine 

Getting developer name for a record type

Hello,

How is it possible to get the developer name for a record type
Best Answer chosen by Sandrine
Alexander TsitsuraAlexander Tsitsura
Yeah, sure

If you wand you can write soql for retrieve all needed developer name
SELECT Id, Name, DeveloperName FROM RecordType WHERE SObjectType = 'Opportunity'

To open the Developer Console, click Your name | Developer Console. Click "Query Editor" tab and paste query above.
User-added image

Thanks,
Alex

All Answers

Alexander TsitsuraAlexander Tsitsura
Hi Sandrine

Example
Go to Setup -> Customize -> Accounts -> Record Types -> here you found all record types fpr account -> click on one record type and find "Record Type Name" field(it's developer name).

As a common practice, if your question is answered, please choose 1 best answer. 
But you can give every answer a thumb up if that answer is helpful to you.

Thanks,
Alex
SandrineSandrine
Are you sure, its the develloper name.

Because in one of the line in my code, it says like

        return [SELECT Id,x__c FROM Opportunity 
                WHERE x__c 
                IN: y AND (RecordType.DeveloperName = 'OpportunityTest' )];

But my developer name is on the opportunity record type is like  Opportunity_test (As you explained)
 
Alexander TsitsuraAlexander Tsitsura
Yeah, sure

If you wand you can write soql for retrieve all needed developer name
SELECT Id, Name, DeveloperName FROM RecordType WHERE SObjectType = 'Opportunity'

To open the Developer Console, click Your name | Developer Console. Click "Query Editor" tab and paste query above.
User-added image

Thanks,
Alex
This was selected as the best answer
ManojjenaManojjena
Hi Sandrine,

Record type is a object in salesforce when ever you will create a record type in any object it will create a record in Reordtype Object .
RecordType object has diffrenet columns Name ,DeveloperName .Assume you have created a record type in opportunity (Data Entry) so the name will be Data Entry which is basically the lable Name and Developer Name will be (Data_Entry) which is teh Record type Name . As it is a column in Record type object you can query to that .One more thing we have SobjectType  column in Record type which will help you to create same record type in differeent object but it can be identified with that .
To know more about the record type object you can check below link .

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_recordtype.htm#topic-title   

Once you will edit the particular record type in your object Like Click on recordtype>Click on the name of the record type which will show you two things like below .

User-added image
First one is storing in Name column and second one will be Developer Name column .

Let em knwo if it helps !!
Thanks
Manoj





 
bail joybail joy
Quickpayportal has made online bill payment much easier. Just by entering the Quickpay code found on the Patient statement/ bill, we can simply login.  https://quickpayportal.red
damion medamion me
Simply make sure your grip on the IT braindumps devised the industry’s best IT professionals and get a 100% guaranteed success in Salesforce Pardot-Specialist exam. A Salesforce credential, being the most valuable professional qualification, can open up doors of many work opportunities for you. https://www.marks4sure.com/Pardot-Specialist-exam.html