Infosys salesforce interview questions | Infosys salesforce interview questions and answers 2025: If you are searching for Infosys Salesforce Interview questions which was asked in Infosys Salesforce Interview then you are on right page. Here we have covered Infosys experience salesforce developer interview experience and question.
Infosys salesforce selection process for experienced:
There will be total 3 Rounds in Salesforce developer role in Infosys Compnay:
- Technical Round
- Managerial Round
- HR Round
Infosys salesforce interview questions and answers:
- Introduce yourself
- Explain your work experience
- What was the team size what was your role in team ?
- What is Role and Profile in Salesforce?
Answer: Roles in Salesforce control the level of visibility that users have into an organization’s data based on their hierarchy in the company. They govern data access based on record ownership and control who can see what data across the organization.
Profiles, on the other hand, define a user’s permissions within the system, determining what they can do within Salesforce. Profiles control permissions like access to objects, fields, and administrative functions. Every user is assigned a single profile but can belong to multiple roles in a hierarchy. - Explain List vs Hierarchical Custom Settings
Answer: List Custom Settings allow for the storage of data at the organization, profile, or user level and are often used when the data needs to be accessible to multiple users but independent for each user. You can create multiple records within List Custom Settings.
Hierarchical Custom Settings allow for data to be defined at different levels of the hierarchy (user, profile, or org level), with higher levels overriding values from lower levels. It is often used for settings that apply globally or need to be controlled based on profile or user without creating multiple records. - How Many Roll-up Summary Fields Can We Create on a Single Object?
Answer: Salesforce allows up to 25 roll-up summary fields on a single object. Roll-up summary fields enable you to perform aggregate operations like COUNT, SUM, MIN, and MAX on child records related to a parent record. This field is only available on the master object in a master-detail relationship. - Explain the Lifecycle of Lightning Web Component (LWC)
Answer: The Lifecycle of a Lightning Web Component (LWC) includes these phases:
Constructor – Called when the component instance is created.
Connected Callback – Executed when the component is inserted into the DOM.
Render Callback – Called each time the component is rendered or re-rendered.
Rendered Callback – Runs after every render of the component.
Disconnected Callback – Called when the component is removed from the DOM.
Each of these methods allows for specific actions at different stages of a component’s lifecycle, enabling developers to manage the component’s behavior and performance effectively. - What is a Wire Adapter and When Do We Use It?
Answer: A wire adapter in LWC is a function that allows components to get data from Salesforce in a reactive way, automatically updating when data changes. Wire adapters are used with the@wire
decorator and provide a streamlined method to connect a component to Salesforce data sources like Apex methods, standard Salesforce objects, and custom objects.
Qns 9.Have You Worked on the Pub/Sub Model in LWC?
Answer: Yes, I have worked with the Pub/Sub model in LWC. The Publish-Subscribe model is used for communication between components that do not share a direct relationship, like parent-child or sibling relationships. This model allows the components to communicate through a single event bus, improving modularity and reducing direct dependencies.
Qns 10. Write a Code to Share Data Between Child to Parent in LWC
Answer: To share data from a child to a parent component in LWC, you can use a custom event. Here is the code:
Child Component (childComponent.js
)
// Import necessary functions
import { LightningElement } from 'lwc';
export default class ChildComponent extends LightningElement {
sendDataToParent() {
// Dispatch the custom event with data
const dataEvent = new CustomEvent('datachange', {
detail: { message: 'Hello from Child Component!' }
});
this.dispatchEvent(dataEvent);
}
}
Parent Component (parentComponent.html
)
<template>
<c-child-component ondatachange={handleDataChange}></c-child-component>
<p>Data from Child: {childData}</p>
</template>
Parent Component (parentComponent.js
)
import { LightningElement, track } from 'lwc';
export default class ParentComponent extends LightningElement {
@track childData;
handleDataChange(event) {
this.childData = event.detail.message;
}
}
This setup allows the child component to send data to the parent component using a custom event.
Qns 11: Display Name, Phone, Website of Account Record in LWC: Methods and Code
Answer: You can display fields like Name
, Phone
, and Website
from an Account
record in LWC using either Apex method or wire with LDS (Lightning Data Service). Here’s a breakdown:
Qns 11: Write a Query to Get All Opportunities Related to Account
Answer: The following SOQL query retrieves all Opportunity
records associated with an Account
:
SELECT Id, Name, Amount, StageName FROM Opportunity WHERE AccountId = 'ACCOUNT_ID'
Replace 'ACCOUNT_ID'
with the ID of the specific account you want to query.
Qns 12:  Write a Trigger: We are three objects 1 – Vehicle, 2 – Car, 3 – Bike. On vehicle there are three fields : 1 – No_of_Vehicle, 2 – No_of_Cars, 3 – No_of_bikes. Upon adding new Bike or Car records the values of No_of_Vehicle,No_of_Cars, No_of_bikes should get updated.
Answer: Below is an example trigger that updates the fields No_of_Vehicle
, No_of_Cars
, and No_of_Bikes
on a Vehicle
object when new Car
or Bike
records are added:
trigger UpdateVehicleCounts on Bike__c (after insert) {
Set<Id> vehicleIds = new Set<Id>();
for (Bike__c bike : Trigger.new) {
vehicleIds.add(bike.Vehicle__c);
}
List<Vehicle__c> vehiclesToUpdate = [SELECT Id, No_of_Vehicle__c, No_of_Bikes__c FROM Vehicle__c WHERE Id IN :vehicleIds];
for (Vehicle__c vehicle : vehiclesToUpdate) {
vehicle.No_of_Bikes__c += 1;
vehicle.No_of_Vehicle__c += 1;
}
update vehiclesToUpdate;
}
trigger UpdateVehicleCountsOnCar on Car__c (after insert) {
Set<Id> vehicleIds = new Set<Id>();
for (Car__c car : Trigger.new) {
vehicleIds.add(car.Vehicle__c);
}
List<Vehicle__c> vehiclesToUpdate = [SELECT Id, No_of_Vehicle__c, No_of_Cars__c FROM Vehicle__c WHERE Id IN :vehicleIds];
for (Vehicle__c vehicle : vehiclesToUpdate) {
vehicle.No_of_Cars__c += 1;
vehicle.No_of_Vehicle__c += 1;
}
update vehiclesToUpdate;
}
These triggers handle the updates on No_of_Vehicle
, No_of_Cars
, and No_of_Bikes
fields on the Vehicle
object whenever a Car
or Bike
record is created.
Conclusion: Infosys Salesforce Interview questions
We have covered Infosys Salesforce Interview questions 2024-2025, focusing on Rounds 1 of the Salesforce Developer interview at Infosys company. For more interview experiences or Interview questions, visit SalesforceBoss regularly.