0% found this document useful (0 votes)
58 views6 pages

Salesforce Development Best Practices Guide

The document contains questions about Salesforce development concepts and use cases. It asks about lookup relationships and displaying child record counts, the use of maps and custom settings, scheduling imports and bypassing required fields, and invoking Apex classes through process builder by passing parameters.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views6 pages

Salesforce Development Best Practices Guide

The document contains questions about Salesforce development concepts and use cases. It asks about lookup relationships and displaying child record counts, the use of maps and custom settings, scheduling imports and bypassing required fields, and invoking Apex classes through process builder by passing parameters.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Cognizant

1. How would you approach for a lookup relationship objects, to display child object no. of records
on Parent Object? (Events, Context Variables, Logic) (Ex: Account, Contacts)

1. What is the use of Map, and explain me a case, why you go for a map?
2. What are the Custom Settings, and the Methods in custom settings and their difference and use
cases?
3. How would you approach if i want the information invoked by an email to come and store in lead
object as a records?
4. From a queue if a user accepted records as an owner, once that user is deactivated, the records should
go back to queue, how would you deal with it?
5. What are the AJAX Functions, why we use them?
6. What is the use of action function, can you please explain through a case where u have used it, and
why only action function?
7. Why we need extensions? What is limit of extension classes we can use?
8. How would you invoke the apex class through the process Builder?
9. How you will pass parameters (Ex: id of record) for an apex class through process builder?
10. What is the difference between WhatID and WhoID, where you use them?
11. Can we change the lead process, if Yes, then How?
12. What do you know about sales cloud?
13. If you have to import the records through data loader (data coming from other source), regularly at
certain time – how would you schedule it?
14. If you are importing data through data loader, but there is a case to bypass the required fields (@field
Level required, @page Layout Level required) – how would you proceed?
15. I have to design a visualforce page, in which based on the region of user (Asia pacific, America and
Europe etc.) the picklist values have to be shown but not through the dependent relation?
16. What is purpose of custom controller, can’t we just have a standard controller and extensions enough
for requirements?
17. How would you schedule a batch apex?
18. What you consider before writing a test class?
19. How would you deal with the governor limits?
20. How to avoid the recursive triggers?
21. What is the purpose of Wrapper Class and its usage?
Infosys

1. What is with sharing and without sharing? How general class mode will run?
2. What is the Difference between system mode and user mode?
3. Explain me a case of how sales cloud work on with the flow of objects?
4. What is the use of global keyword, what happens if we do not give?
5. What are Web to lead, web to case and escalation rules?
6. Extension classes, use, limits, purpose and their order?
7. Can we use both standard controller and custom controller together?
8. What is standardSetController, why we use it?
9. About Pagination using standard and custom controllers? How you do it?
10. What is the no. of records can be displayed on visualforce page, and how to maximize it?
11. Difference between render and rerender?
12. What is the use of apex action status? Can you give me an example?
13. What is the difference between action function and @Remote action?
14. What is the use of Action support and apex:facet?
15. How to load the javascript or css existing? Where to load them? Can you tell me the syntax?
16. What is the Use of custom labels, how do you access them in apex classes and in visualforce pages?
17. How to add error on visualforce page through apex class and through visualforce page?
18. How to add error through the trigger?
19. What the common deployment issues you know?
20. What are the best practices you follow and how is your thought process keeping the governor limits
in mind to write trigger/classes?
21. How would you approach to write a test class? What are the best practices?
22. What is @testSetup? And it’s purpose? And how many we can have in a single test class?
23. What is your approach during peer code review?
24. What is the difference between dataloader and import wizard?
25. Methods in batch class, sIterable and getquereyloacator differences?
26. How to invoke batch class from another batch class?
27. What happens if i invoke batch class form execute method other than finish method?
28. Scope of [Link] interface?
29. Can i have a class implementing interface, methods not implementing interface? Can i have methods
along with interface methods and other new methods also?
30. How can you deploy other than using change sets? What is difference

Virtusa

1. In production org we have 98% of code coverage and we are trying to move apex class and trigger
through change set without any test class? Will they be deployed? If not what is the minimum code
coverage required to deploy them?
2. When we have standard controller and extensions feature in visualforce? What is the need of custom
controller?
3. What is the bucketing feature in reports?
4. Can we do the refresh for dashboards? How do you do?
5. On what basis you will decide that you need a custom profile when you have standard Salesforce
profiles?
6. What is wrapper class?
7. What is Email to Case in salesforce? How you implement it?
8. How many ways we can invoke the approval process?
9. When I create the custom object. What is the default OWD access for it?
10. What is the difference between ISBLANK and ISNULL?
11. On account object, for status field – if values is pending not changed for 7 days, I want the status
field to change it not yet approved. How do you approach?
12. Through Eclipse how can you delete the class in production?
13. I have action for the visualforce page tag hitting a getMethod in controller class, and I have
constructor in controller class. Which one will hit first?
14. In a single DML statement, how can I insert both Parent and child records at a time? Can we do it or
not?
15. What is [Link] and [Link]?
16. If want to insert the contact through the future method? How would you do it?
17. Can we call future method from the batch Apex?
18. How to invoke the apex class from process builder? And If I have to pass parameter to the class how
will I do?

Honeywell

1. What is the difference between Role and Profile?


2. What will happen if we don’t assign a role to particular user?
3. When do you go for a Workflow and when do you go for Trigger? How do you decide?
4. What are the Governor Limits? What are the best practices you follow to avoid hitting these limits?
5. What is the minimum Code Coverage required to deployment? What are the ways you deploy?
6. What are the collections in Apex? What is their differences and how you decide which one to use?
7. What is custom settings? How it differ from the custom object? Can you give me one Scenario when
you will go for the custom settings not custom object?
8. What are the advantages and usage of Batch Apex? And describe how it works?
9. On account object at one field I would like to display the related List – attachment, no. of records.
How would you approach it?
10. What is the difference between SOQL and SOSL?
11. What are the Different AJAX functions?
12. How would you approach for a requirement of partial refreshment on visualforce page?
13. Can we use standard controller and custom controller together?
14. On Account object on click of save – if I have to redirect how will you approach?
15. What are the web2lead and web2case in Salesforce? How to do it?
16. How to make the leads auto assign based on the condition?
17. What is custom Graph? (Dashboards).
18. We have a standard dashboard, but if we want custom chart, in a temple to download. How would
you approach it?
19. When do you go for import wizard and dataloader? What is the difference? How you export data
from Salesforce?
20. Email Queries from people are coming up. One company and 8 business units. How would you
address their concerns/queries? All 8 units have their own instance. How would you approach to
resolve this issue? How will you route the case from one Master instance to all 8 unit teams to
handle?
21. Have you worked on single sign on, [Link] and community chatter?
22. How would you implement a payment gateway in Salesforce?
23. Is it possible for a user to own the record and still not able to see?
24. If you are changing field type will there be any data loss? For example, from number to text?
25. Once you convert a lead into opportunity. How does it choose the record type in opportunity?
26. How to change the values in the status field of Lead object? Can we add our own values?
27. Can you explain the MVC? And how it works for Salesforce?
28. Can you include the java code in visualforce page?
29. Can you tell me something about the ExternalID? And how to make a field Unique?
30. Records assigned to a user, if user is deactivated records should go back to queue. How would you
approach it?
31. While creating a new record the object should go to standard detail page. But while updating it
should go to custom visualforce page. How would you approach?

Tech Mahindra

1. What are the context variables of triggers?


2. Approval Process walk me through?
3. What is difference between Limit and Offset Keywords? And why we use
them?
4. If i have to write a query for a set of records from an object, where i want
to see only next 30 records after skipping of first 20 records?
5. How you proceed to display the information of parent object fields on
child object detail page?
6. Difference between Lookup and Master Detail, How to create a master
detail relationship for an existing records of 2 objects which are having
lookup relation?
7. How to avoid the recursive triggers?
8. How to impart the custom logic for a visualforce page, accessing standard
controller?
9. How to override the methods in the standard controller and have custom
logic for the same method?
10. What is limit size of extensions we can have?
11. If i have same method with the same prototype on all the classes of
extensions, which one executes?
12. If the order of custom logic execution on a visualforce page?
13. What is the difference between rendered and rerender?
14. What is the difference between PageBlockTable and DataTable?
15. How many records can be displayed on a visualforce page what is
the limit, if i want to display more how to do it? And what is the maximum
limit?
16. What is the difference between Action function and action support?
17. What is the use of action poller?
18. What are the types of custom settings and how it differ from the
custom objects?
19. What is an MVC model? How Salesforce is accommodated on that ?
20. What is remote action?
21. Can i add the java code (not java script) execute on the visualforce
page?
22. What is the difference between workflow, trigger and process
builder??
23. What is selectList and selectOption?
24. What is the difference between inputText and inputField?
25. What is the use of apex Repeat and write a case, dealing with custom
controller to display a set of records with id, name, phone and address in
columns and form table?
26. How to pass the id form visualforce pages to the apex class?
27. What is the difference between user mode and system mode?
28. What is the use of with sharing and without sharing keyword?
29. What are the best practices you follow while writing trigger?
30. Is it possible to update the child object fields info through workflow
on parent object, and what if the case is reverse?
31. In which condition we can’t perform a time dependent action?
32. What is the difference between every time edit and subsequent
criteria met edit of workflow rules?
33. What is the use of view state?
34. Can i deploy a class without having it’s class when my org has test
coverage of >75%?
35. Is it possible to deploy a trigger without it’s test class if org has code
coverage of >75%, if not then what is the minimum code coverage to
deploy?
36. What is the use of global keyword?
37. What is Bucketing in salesforce?
38. How to throw an error from trigger?

You might also like