InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How do I create a Many-to-Many Relationship in Salesforce? |
|
Answer» In Salesforce, a Many-to-Many Relationship is also known as a JUNCTION object. The steps to make it are as FOLLOWS. |
|
| 2. |
Consider the following situation: I have two objects, Obj1 and Obj2, that are not linked to each other. I need to create a Master-Detail Relationship (MDR) between these objects at the moment, but am I able to do so? |
|
Answer» First, choose an object that is a parent object (Master) and a child object (Kid) (DETAIL). Let's pretend that we've decided that Obj1 will be the Master object and Obj2 will be the Detail object for the time being. First, let's define a Master-Detail relationship.Every child should have a parent. This means that each record in Obj2 must be linked to a parent record in Obj1. In addition, one child will have only one parent. One parent, on the other hand, will have several children. Let us consider that there are already EXISTING records in Obj2. According to the Master-Detail relationship, we must ensure that each record in Obj2 is linked to a record in Obj1. And, in our current condition of affairs, Obj1 and Obj2 are not linked. As a result, we must first create a SIMPLE search relation between these two things in order to CONSTRUCT a relationship between them. As a result, we have a tendency to follow the instructions outlined below.
|
|
| 3. |
Can there be two users with a similar profile? Will a user with two profiles be assigned? |
|
Answer» Profiles confirm the scope of a user's access in a Salesforce ORG. Because the first portion of the question is so IMPORTANT, Yes. A single profile is issued to a large number of users. A comparable profile will be issued to the ENTIRE TEAM. The admin will create a single profile called Sales Profile, which will have access to Leads, Opportunities, CAMPAIGNS, Contacts, and other corporate items. This signifies that a similar profile has been assigned to a number of people. If the team leader or manager needs access to additional records or objects, distribution permission sets are created specifically for those users. |
|
| 4. |
We have a regular Controller as well as a Controller Extension. All of the logic is written in a Controller Extension, which may or may not be written in a Custom Controller. |
|
Answer» First and foremost, It is impossible for a CONTROLLER Extension to exist on its own. It will be applied to either a standard or a custom controller. So, keeping the end goal in mind, certain techniques, for example, must be dead in User Mode and sure in System Mode. In this CASE, using a standard controller with a custom extension is a no-brainer. Wherever the victim is, the normal Controller provides all of the Force.com platform's pre-existing options. However, after we use the normal Controller, all of the Sharing rules, as well as a user's permissions, are revered. So, if this is what we frequently require, we should ALWAYS CHOOSE this type of SOLUTION. |
|
| 5. |
What would be the most practical solution for keeping an application up and running while deactivating a specific user? |
|
Answer» You can freeze user accounts to prevent them from working in your business while you undertake the steps to DEACTIVATE them. So, until you figure out how to remove this user from the Role hierarchy, you can update the owner of the entries he created/from any location where this user is employed. For this, we can USE the FREEZE BUTTON on the user record. If we CLICK the FREEZE button, the user will no longer be able to LOG in to the application. Changing user accounts in the state does not free up existing user licences for use in your organisation. To release the licence, we must deactivate the user. |
|