Category: Dr. SFDC Scout
-
Best way to get the object name from record id in apex

Sometimes you have to identify the object name associated with the record id in your apex code. In that case use of prefix may hit the code quality check report (like PMD report). And for that case you can use sObject method getsobjecttype() to get the object name. See below…
-
How to know salesforce object type from the record Id Prefix?

In salesforce each record of standard or custom object has an unique identifier. If you notice carefully you will see the 1st three digit of all records of each object are same. Like all the contact records are starts with same 1st three digits. This way you can easily identify…
-
How to install Data Loader in Mac?

The installation procedure has changed a little bit for MAC OS. But not so complex. Data Loader v48 is a Salesforce supported Open Source project to help you import data to and export data from your Salesforce org. Note: It requires Zulu OpenJDK 11 to run. So the 1st step…
-
Unable to find Custom picklist field values to translate in translation workbench?

Its was like an another regular day for me. I got the requirement to add translation to existing picklist field values. The value list was quite long, nearly more than 20. I thought it was so easy and kept for my EOD (concept was, if EOD is good then all…
-
How to restrict user to create multiple records (One record per user scenario) using Duplicate rule?

This can be achieved by different solutions. Like, Validation rule Duplicate rule Trigger In this use-case, we will see how to achieve this using a simple Duplicate rule. 1st I have created a custom object called ‘Passbook’ and added below custom fields and marked as ‘Required’. Customer Mobile Number Customer…

