Capgemini
20+ Auxilo Finserve Interview Questions and Answers
Q1. What are triggers and their use?
Triggers are automated actions that are executed when a specific event occurs in a Salesforce database.
Triggers are used to perform custom actions before or after specific events, such as inserting, updating, or deleting records.
Triggers can be used to enforce business rules, validate data, or update related records.
Triggers are written in Apex code and can be used to extend the functionality of Salesforce beyond its standard capabilities.
For example, a trigger can be used to...read more
Q2. How to invoke flows - using other flows and Apex. How do we invoke an apex class from a flow and pass variables?
Flows can be invoked using other flows and Apex. Apex classes can be invoked from a flow by using invocable methods and passing variables as input parameters.
To invoke a flow from another flow, use the 'Launch Flow' element in the Flow Designer.
To invoke an Apex class from a flow, create an invocable method in the Apex class and annotate it with @InvocableMethod.
Pass variables from a flow to an Apex class by defining input parameters in the invocable method.
In the flow, use t...read more
Q3. Write a trigger on account to display child contacts Write a inline lightning component anything
Trigger to display child contacts on account and inline lightning component
Create a trigger on Account object
Query for child Contact records related to the Account
Display the Contact records in a related list on the Account page layout
Create an inline lightning component to display additional information on the Account page
Q4. Tell me about trigger Governor limit Soql sosl Relationship in Salesforce
Triggers are code that execute before or after specific events occur in Salesforce. Governor limits are limits on resources that a single transaction can consume. SOQL and SOSL are query languages used to search for data in Salesforce. Relationships define how objects are related to each other in Salesforce.
Triggers are used to automate processes in Salesforce
Governor limits prevent a single transaction from consuming too many resources
SOQL is used to search for data in a sin...read more
Q5. What are API calls in Salesforce?
API calls are requests made to Salesforce servers to retrieve or manipulate data.
API calls are used to integrate Salesforce with external systems
API calls can be made using SOAP, REST, or Bulk APIs
API calls are limited based on the edition of Salesforce and can be monitored in the Developer Console
Examples of API calls include retrieving data from Salesforce, creating new records, and updating existing records
Q6. What is difference between profile and permission sets
Profiles define user's access to objects and fields while permission sets grant additional permissions to users.
Profiles are assigned to users and define their access to objects, fields, tabs, and other features.
Permission sets are used to grant additional permissions to users without changing their profiles.
Profiles are used to restrict access while permission sets are used to grant access.
Profiles are used to define the baseline access while permission sets are used to exte...read more
Q7. Why can't we create a master detail on contact as the child object
Master-detail relationship on Contact as child object is not allowed due to data integrity concerns.
Contact is a standard object and cannot be a child object in a master-detail relationship
Master-detail relationships require the child object to have a lookup to the parent object
Contacts are often used as the primary object in many relationships, making it unsuitable as a child object
Q8. How to get the client id and secret of an external app in integration
Client id and secret can be obtained by registering the external app in the integration platform
Register the external app in the integration platform (e.g. Salesforce)
Navigate to the app's settings or configuration page
Look for the client id and secret provided by the integration platform
Use the client id and secret in the app's authentication process
Q9. What is the use of SOQL?
SOQL is used to query data from Salesforce database.
SOQL stands for Salesforce Object Query Language.
It is used to retrieve data from Salesforce objects.
It supports filtering, sorting, and grouping of data.
It can be used in Apex code, Visualforce pages, and Lightning components.
Example: SELECT Name, AccountNumber FROM Account WHERE Industry = 'Technology'
Q10. What is child to parent communication in LWC?
Child to parent communication in LWC allows a child component to communicate with its parent component.
Child components can dispatch custom events to communicate with parent components.
Parent components can listen for these custom events and handle them accordingly.
This communication pattern helps in passing data and triggering actions between components.
Q11. Write triggers for updating user email from contact emails.
Write triggers to update user email from contact emails
Create a trigger on the User object
Query for related Contact records
Update User email field with Contact email
Q12. How to communicate between lwc components
Communication between LWC components can be achieved using events, properties, and methods.
Use events to communicate between unrelated components
Use properties to pass data from parent to child components
Use methods to call functions in child components from parent components
Q13. How does LWC ensure data refresh
LWC ensures data refresh by using Lightning Data Service and @wire decorator.
LWC uses Lightning Data Service to ensure data refresh without needing to write Apex code.
The @wire decorator in LWC allows for declarative data binding and automatic refresh when data changes.
LWC components can also manually refresh data using imperative Apex calls or by calling the refreshApex() method.
Q14. If account is deleted why contact record deletes
When an account is deleted, the related contact record may also be deleted due to a cascading delete rule.
Contacts are often related to accounts in a one-to-many relationship
Cascading delete rules can be set up in the database to automatically delete related records
This helps maintain data integrity and prevent orphaned records
Q15. Count all number of contacts and display on account
Use SOQL query to count number of contacts related to an account and display on account record
Use a SOQL query to count the number of contacts related to the account
Create a formula field on the account object to display the count of contacts
Use a trigger to update the count of contacts on the account whenever a contact is added or removed
Q16. What is Asynchronous Apex and its types.
Asynchronous Apex allows you to run processes in the background, separate from the main transaction.
Types of Asynchronous Apex include Batch Apex, Queueable Apex, and Scheduled Apex.
Batch Apex is used to process large amounts of data asynchronously.
Queueable Apex allows you to add jobs to the Apex job queue to be processed asynchronously.
Scheduled Apex allows you to schedule Apex to run at a specific time.
Q17. How to connect other app in salesforce
You can connect other apps in Salesforce using APIs and integrations.
Use Salesforce Connect to integrate external data sources
Utilize REST or SOAP APIs to connect with other apps
Leverage middleware tools like MuleSoft for seamless integrations
Q18. how to call child to parents
To call child to parents, use the $A.getCallback() method in Salesforce Lightning Component development.
Use $A.getCallback() method to ensure that the child component is called after the parent component.
Pass the child component method as a parameter to $A.getCallback() to call it from the parent component.
Example: $A.getCallback().call(this, function(){ childComponentMethod(); });
Q19. What is salesforce?
Salesforce is a cloud-based customer relationship management (CRM) platform that helps businesses manage their sales, customer service, marketing, and more.
Cloud-based CRM platform
Helps businesses manage sales, customer service, marketing, etc.
Offers various tools and features for automation and customization
Used by companies of all sizes across different industries
Q20. Best practices of apex
Best practices of Apex
Use bulkification to process large data sets efficiently
Avoid SOQL queries inside loops to optimize performance
Handle exceptions gracefully using try-catch blocks
Use proper naming conventions for variables, classes, and methods
Write test classes to ensure code coverage and functionality
Use governor limits wisely to avoid hitting limits
Implement proper error handling and logging mechanisms
Follow coding standards and maintain code readability
Leverage Apex ...read more
Q21. Best practices of test class
Best practices for writing test classes in Salesforce
Write test classes to cover at least 75% of your Apex code
Use the @isTest annotation to define a class as a test class
Create test data using the @testSetup annotation or by inserting records in the test method
Use System.assert methods to validate expected results
Test both positive and negative scenarios
Avoid hardcoding IDs and use the Test.getStandardPricebookId() method instead
Use Test.startTest() and Test.stopTest() to se...read more
Q22. Asynchronous apex scenarios
Asynchronous apex scenarios involve executing code in the background to improve performance and user experience.
Asynchronous apex can be used for long-running processes, such as batch jobs or callouts to external systems.
It helps in avoiding governor limits by processing tasks in the background.
Examples include sending email notifications, updating records in bulk, and integrating with external APIs.
More about working at Capgemini
Interview Process at Auxilo Finserve
Top Salesforce Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month