function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AbAb 

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 Ab
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
AbAb
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
jackob nishtajackob nishta
Thanks to the author for sharing Post with us. While I'm happy to hear Prank App with you. you can play pranks with your family and friends. https://smsbomberap.com/ 
The Bomber call (https://smsbomberap.com/call-bomber/) is software that can help you to send tons of missed calls to the person you want to prank continuously.
Arsalan PervezArsalan Pervez
Thank You for sharing such a nice article. Worth reading it. Form Processing Service (https://it-s.com/our-services/data-tranformation-services/form-processing-services/)
Dhaval Patel 98Dhaval Patel 98
Very Nice. You can visit Buyyr for Best CPU under 10000 (https://buyyr.in/best-cpu-under-10000/)
Dhaval Patel 98Dhaval Patel 98
Great one. Check out the best hosting provider in India: Bluehost Review (https://buyyr.in/bluehost-review/)