Blue Flame Labs
Regal HR Solutions Interview Questions and Answers
Q1. What is trigger context ?
Trigger context refers to the execution context of a trigger in Salesforce.
Trigger context provides information about the record(s) that caused the trigger to execute.
It includes details like the trigger event type, the old and new versions of the records, and the user who caused the trigger to execute.
The trigger context is accessed using the Trigger class in Apex.
Example: Trigger context can be used to perform specific actions based on the type of trigger event, such as bef...read more
Q2. can we use trigger.new() in before & after trigger.
Yes, we can use trigger.new() in before & after trigger.
In before trigger, trigger.new() returns the records that are about to be saved.
In after trigger, trigger.new() returns the records that have been saved.
We can use trigger.new() to access and manipulate the records in the trigger context.
Q3. what is salesforce backend like MVC ?
Salesforce backend follows a similar pattern to MVC architecture.
Salesforce backend is divided into three layers: Model, View, and Controller.
Model layer contains the data and business logic.
View layer is responsible for rendering the user interface.
Controller layer handles user input and communicates with the Model and View layers.
Apex is used for the Controller layer and SOQL for the Model layer.
Visualforce is used for the View layer.
This architecture helps in separating co...read more
Q4. what is salesforce architecture ?
Salesforce architecture is a multi-layered framework that allows for customization and scalability.
Salesforce architecture consists of four layers: presentation, logic, data, and storage.
The presentation layer is responsible for the user interface and user experience.
The logic layer contains the business rules and processes.
The data layer stores the data and manages relationships between objects.
The storage layer manages the physical storage of data.
Salesforce architecture al...read more
Q5. diff between master-detail relationship & lookup relationship
Master-detail relationship is a parent-child relationship where the child record cannot exist without the parent record. Lookup relationship is a simple association between two objects.
Master-detail relationship is a stricter relationship than lookup relationship.
Master-detail relationship is used when there is a parent-child relationship between two objects.
In master-detail relationship, the child record inherits the sharing and security settings of the parent record.
Lookup ...read more
Q6. what is batch/apex class ?
Batch/Apex class is a type of Apex code that processes large amounts of data asynchronously in batches.
Batch classes are used to process large amounts of data in batches
Apex classes are used to write custom business logic
Batch classes implement the Database.Batchable interface
Apex classes can be used to create triggers, controllers, and web services
Example: A batch class can be used to update all accounts with a specific field value
Q7. diff between visualforce & lightning component ?
Visualforce is a page-centric model while Lightning Component is a component-centric model.
Visualforce is based on a page-centric model while Lightning Component is based on a component-centric model.
Visualforce uses a server-side controller while Lightning Component uses a client-side controller.
Visualforce is built using Apex and Visualforce markup language while Lightning Component is built using JavaScript and Aura framework.
Visualforce has limited support for mobile devi...read more
Q8. diff between before & after trigger
Before trigger runs before the record is saved to the database, while after trigger runs after the record is saved.
Before trigger is used to update or validate record values before they are saved to the database.
After trigger is used to perform additional actions after the record is saved to the database.
Before trigger can be used to prevent certain changes from being made to a record.
After trigger can be used to update related records or perform other actions based on the ch...read more
Q9. what is workflow ?
Workflow is an automated process that helps to streamline business operations and improve efficiency.
Workflow is a series of steps that automate a business process.
It can be used to automate tasks such as sending emails, updating records, and creating tasks.
Workflows can be triggered by specific events or conditions, such as when a record is created or updated.
Salesforce provides a visual interface for creating and managing workflows.
Workflows can be used to automate complex ...read more
Interview Process at Regal HR Solutions
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month