Sei sulla pagina 1di 138

LATEST SALESFORCE INTERVIEWS

(Sources: Intelogik.Com Salesforce Network)

====================================

July – Aug + recent interviews from network:


Cloudbyz Interview(Startup in Bangalore)

Mode: Skype

Skill: Salesforce

Questions:

1. What is profile?
2. What is roll up summary field?
3. What is bucketing field?
4. What is custom label?
5. What are the different report types?
6. What is permission set?
7. What is meant by sandbox? What are the different types of sandbox?
8. Difference between Process builder and Workflow rule.
9. What are OWD settings?
10. How to create multi-step approval process?

TCS Interview

Mode: Telephonic

Skill: Salesforce

Questions:

1. Suppose there are two objects in the Salesforce org which are related. Now I want that whenever I
create a record of one object, the record of the other object should be created automatically. How
can we do it without writing any code i.e from admin perspective?
2. Difference between Process builder and Workflow rule.

TCS Interview
Mode: Telephonic

Skill: Salesforce

Questions:

1. What are different types of controller in VF page?


2. If I have multiple extensions with multiple classes with a common function with the same name
present in each class, then which function will be called?
3. If I want to retrieve the query set of SOQL query in a map what is the syntax?
4. Suppose I have two controllers in a VF page, Controller1 and Controller2. Controller1 redirects to
page1 and Controller2 redirects to page2. Now if the VF page is executed then which page will open?
5. Can I have two standard controllers in the same VF page?
6. Can I have multiple custom controllers in the same VF page?
7. Is it a good practice to write SOQL query inside a loop?
8. How can we write code in case we need to insert multiple records for an object and we need to
maintain the governor limit?
9. What are the best practices of writing a trigger?
10. What are OWD settings?
11. What is Role hierarchy? What is the impact of not using grant access using hierarchies?
12. Is it possible to integrate SF with JavaScript? How?
13. What are the different types of collections in Salesforce?

KcloudITtechnologies(Noida Startup)

Mode: Skype

Skill: Salesforce

Questions:

1. Write a trigger on the contacts: Count the number of contacts associated with an account and
update the value in a field in account. The trigger should work on insert, update and delete.

TCS Interview

Mode: F2F Kolkata

Skill: Salesforce

Questions:

1st Round
1. What are the ways in Salesforce to get data sharing?
2. Why we use profile? How it differs from OWD?
3. What do you mean by data sharing and object sharing? Is it possible to get data sharing using
profile?
4. Suppose there is a time dependent workflow rule has been defined based on some condition. Now
before the triggered date the condition gets changed. So what will happen now?
5. Suppose there is a custom object field. There is a validation rule has been defined on it such that for
value less than 5 it will satisfy. There is also one trigger on the object which operates before inserting
the data. Now if a new record is created with value 4 then what will happen?
6. Explain the execution order in Salesforce.
7. Explain dynamic approval.
8. Is it possible to assign different approvers based on the different field value conditions in approval
process?
9. Suppose there are 3 approval process related to an object and all 3 of them satisfies the entry
criteria. Now when the approval is submitted then which approval process will trigger and why?
10. What are the best practices for writing triggers?
11. Why is it good practice to write one trigger per object?
12. Why is it good practice to write the business logic inside apex class and not in trigger itself?
13. Why data needs to be bulkified? If I import records using tools like data loader then for each of the
record there is a single transaction right? Then why I need to bother about governor limit?
14. What are the actions available in workflow rules?
15. What is the use of outbound message? Have you worked on it?
16. Design the below using VF page:
There is one picklist field which contain three text values: One, Two & Three and based on this value
1 or 2 or 3 will be populated in a text field.
If the mapping is available in custom settings then how we can retrieve and show it in VF page?
17. Suppose there are two triggers one for Account and one for Contact object. Now both the trigger
seems to be in cyclic order i.e. Account object trigger will update the contact field when there is any
update in the account object field. Similarly contact object trigger will update the account field when
there is a change in the contact field. How we can break this deadlock?
18. Suppose two objects are associated with master details relationship. For master the access is public
read write. Now if I want to get the access as public read only for child object. How we can do that?
19. What is use of grant access using hierarchies?
20. Difference between process builder and workflow rules.
21. Suppose I want to update the master record field based on some condition on child object field or
want to update the child record field based on some condition of the master record field. How we
can achieve this?
22. What is the difference between the field update in workflow and in process builder?

2nd round
1. What is the difference between role and profile?
2. How many profile can be assigned to one user?
3. What is a permission set?
4. How many permission sets can be assigned to a user?
5. What are the report types in Salesforce?
6. What is bucket field?
7. What is meant by junction object? Give an example.
8. What is roll up summary field?
9. What is workflow rule?
Vlocity Online Test

Mode: Online

Skill: Salesforce

Questions:

1. First question was related to logical reasoning.(About floor and egg)


2. A Json expression was given. How to get that expression and print in javascript?
3. Write a trigger such that whenever an account is update with the new phone number all the
associated case records are also updated with the same phone number.
4. A trigger code was given where after every account record insert was triggering another account
record insert and the first one was parent and the second one was child.
5. A web service related question: there is button in VF page. If it is pressed then it should fetch certain
value from external application. What will be the best practice to achieve this considering speed,
efficiency.
6. If two objects are associated with look up relationship then how can we make sure that parent is
associated with exactly one child.
7. A code was given like below and asked for the output:

public Class TestCheckMap {

public static map<string,integer> func(map<string,integer> m1,integer i){

i = m1.get('hello')+1;
m1.put('hello',i);

map<string,integer> m2 = m1;

return m2;

integer i = 100;

map<string,integer> m1 = New map<string,integer>();

m1.put('hello',123);

System.debug(i);
System.debug(m1);
System.debug(TestCheckMap.func(m1,i));

8. A code was given like below and asked for the output:

insert new Account(name='abc');


for(integer i = 0; i<150;i++) {

try {

insert new Account(name='abc'+i);


}

catch(Exception e){

System.debug(e);
}

insert new Account(name='xyz');

9. A code was given and asked to replace a line with proper variable.
10. A code was given and was asked to display key,value pairs of map in VF page.

Deloitte Interview

Mode: Telephonic

Skill: Salesforce

Questions:

1. The OWD is private for account. Now a user manually shares records with me. If he leaves the
organization and those records are transferred to some other person, will the rule be retained?
2. What are the ways we can share records in Salesforce?
3. What is the difference between look up and external look up relationship?
4. Which one takes precedence: OWD or profile?
5. What are ways to resolve view state error?
6. What is meant by transient? How it helps in resolving view state error?
7. What is VF remoting / javascript remoting?
8. What is the difference between transient and static? Can we define the variables as static instead of
transient to resolve the view state error?
9. How to differentiate between a standard controller and an extension class?
10. What is the order of execution in VF pages? If there is a redirect to another page from the current
page then will the order of execution remain same?
11. How can we define one to one relationship among objects?
12. Suppose there is a requirement: We need to display the account records in VF page with each record
associated to one radio button. Now when the radio button is selected, then that particular record
needs to be inserted to some other external application using callout. User should not experience
any delay while the insert is done. How to achieve this?
13. Have you worked on integration? Which integration?
14. Explain REST. How integration is done using REST. How the credential is passed in REST integration?
15. What is Oauth? Is it preferred over normal security mechanisms?
16. Spring 19 features.

Vlocity Interview

Mode: Hangout Meeting

Skill: Salesforce

Questions:

1. Tell me about your career.


2. Have you worked on sales cloud or service cloud?
3. Have you worked on pricebooks?
4. What is sync option in quote?
5. What is the difference between profile and role?
6. Have you worked on integration?
7. How we do integration in rest?
8. What are the best practices for apex and trigger?
9. What do you mean by bulkification?
10. What is meant by recursive trigger, how to resolve?
11. Write a program (in any language) to print the first duplicate element in an array?
12. What is sharing rules?
13. Have you worked on Jenkins?
14. Stages of sales cycle.
15. Do you know CPQ?
16. What happens when a lead is converted?

Mindtree Interview

Mode: F2F Kolkata

Skill: Salesforce

Questions:

1. What is the difference between profile and role?


2. A user does not have profile level access on an object but still he is able to access the records
of the object, how?
3. If I want to share records among users what are the ways?
4. Have you worked on flow?
5. Suppose there is a parent object which has two child objects and I want to insert records in
two child object after inserting data into parent object. How?
6. What are the annotations you know?
7. I have a validation rule and also a before insert trigger which checks the same for a custom
object...which will be invoked first on insertion?
8. What will be the case for after insert trigger?
9. How many extensions we can have in apex class?
10. What are the available controllers for VF?
11. If there is a method with same signature in all the extensions then if all the extensions are
included in the vf page then which method will get called? How can I call a specific one?
12. I have a requirement: there are two sections in the vf page, on one section there will be
details of the parent record and in the other section the details of all the child records each
with a checkbox will be there. In this section there will be button for save, add more rows
and delete for the child records. The Id of the parent object is passed via url. So how you will
implement this?
13. What are the trigger context variables?
14. What are the possible trigger operations?
15. Have you worked on batch apex? What are the methods available for batch apex?
16. Which interface is implemented while using batch apex?
17. Can I call another batch class from the current batch apex? How?
18. What is the difference between export and export all?
19. What is the maximum values possible in controlling and dependent picklist?
20. How will you handle if you are stuck with some issue?
21. What is custom report type?
22. If two objects are not directly related to each other, related using a junction object is it
possible to create a custom report type?
23. Have you worked on deployment? Which tool you have used?
24. Do you know lightning? What is the lifecycle of lightning app?
25. What is the difference between actionfunction and actionsupport?
26. What is actionpoller?
27. What is the use of test.startest() and test.stoptest() methods?

Simpsoft Solutions(Kolkata Startup)

Mode: F2F Kolkata

Skill: Salesforce

Questions:

1. What are the ways to implement field level security?


2. What is visualforce component?

Accenture

Mode: Telephonic

Skill: Salesforce

Questions:
1. Tell me about yourself.
2. What is the difference between profile and role?
3. What are the other ways to share a record?
4. What is OWD? What are the access values for this?
5. In which cloud you have worked- sales, service, marketing(I answered sales)
6. What are the sales cloud objects? Name them and explain?
7. What is a person account? Does it have a contact?
8. What are the trigger context variables?
9. Can we do DML operation on trigger?
10. Explain whether you have used DML in after trigger?
11. Have you worked on batch class? Which interface is required to be implemented in batch
class?
12. If we need to maintain the state then how we can do it? In which method we should define
the variable for maintaining the state?
13. Have you worked on integration? What are the methods you have used?
14. Have you worked on vf page? How to call a controller function from a vf page while loading
the page? What is the use of action attribute?
15. What is the difference between standard and custom controller?
16. Do you know lightning? How many lightning components have you developed?
17. Explain any two components you have worked.
18. How to include a vf page to be used in lightning component?
19. Explain how we call an apex controller method from js controller? What is the use of
$A.enqueueAction() function?
20. Have you worked on migration? Have you worked on migrating lightning components?
21. What is the difference between apex data loader and import wizard?
22. How to test batch class?
23. Have you ever shown a validation error using trigger? Which function you have used? How
to validate the error in test class?
24. If I want to call a controller method on vf page load, then how can I do it?
25. How Can I perform DML operation on page load? Is it possible?
26. Can standard and custom controller both be used together in vf page?
27. What is the difference between insert and database.insert?
May-June-July 2019 – New questions
Integration Questions:

Salesforce Integration Interview Questions

1. what is integration ?
A. Integration is a process of connecting two applications

2. what is webservices ?
A. Webservices is a functionality or code which helps to us to do
integration.

3. what is Protocal ?
A. Protocal is contains set of instructions or rules.

4. How many types of API’s avaliable in salesforce ?


A. SOAP API, REST API, Bulk API and Streaming API.

5. What is Call In and Call Out?

A. Call In is used to exposing our webservices to another users


Call Out is used to invoking or consuming our webservices to
others.

6. What is WSDL ?
A. WSDL stands for Webservices Description Langugage.
It contains types, messages,port types and Binding.

7. How SOAP can be accessed ?


A. SOAP can be communicate through WSDL file, without WSDL
file we can’t do integration.
Message format in SOAP is XML

8. How to do callout integration ?


A. Generate WSDL code from class
Path: setup-develop -apex class

9. Limitataions of WSDL file ?


A. File must be in .WSDL extenstion.
Multiple port types and binding will not allowed
Import and Inheritance operations are not supported.

10. What is remote site settings ?


A. Remote site settings is used to authorize the endpoint and allow
us to whom integrate(end user)

11. How manys ways to XML parsing ?


A. They are two ways of XML parsing
1. XML streams
2. XML DOM

12. How to read root element in XML DOM ?


A. getroot element

13.How to read child element in XML DOM ?


A. getchild element

14.How to read all child elements in XML DOM ?


A. getchild elements

15. How to read text between tags ?


A. gettext

16. How SOAP and REST will Communicate ?


A. SOAP will communicate through WSDL file
REST will communicate through HTTP file

17. what are methods in REST


A. HTTPGET, HTTPPUT, HTTPPOST and HTTPDELETE

18. How REST can be accessed or which message format REST


supports ?
A. REST supports both XML and JSON

19. What is JSON ?


JSON stands for JavaScript Object Notation. JSON is light
weighted than XML

Paypal

Create WSDL:
https://help.salesforce.com/articleView?id=code_wsdl_to_package.
htm&type=5

Async Method:
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_async_overview.htm

Calling Async from WSDL import:


https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_continuation_callout_soap.htm

Floating report header:


https://help.salesforce.com/articleView?id=enable_floating_report_
headers.htm&type=5
Public Vs Private cloud:
https://azure.microsoft.com/en-in/overview/what-are-private-public-
hybrid-clouds/

FLS in APEX:
https://developer.salesforce.com/forums/?id=9060G0000005hnvQA
A

Query time out:


https://salesforce.stackexchange.com/questions/111535/exception-
query-timeout-your-query-request-was-running-for-too-long
--make indexes on fields

Slow VFP:
https://help.salesforce.com/articleView?id=000171416&language=e
n_US&type=1

https://www.jitendrazaa.com/blog/salesforce/15-ways-to-improve-
performance-of-lightning-components-in-salesforce/

https://salesforce.stackexchange.com/questions/89799/best-
practice-to-monitor-apex-function-execution-time-performance
Cognizant

Tell me about your background in salesforce.


How much you rate yourself out of 10 in admin and developing

1. can you call a lightning component on a visual force page?


2. what is a test class, when and why do you use it?
3. what is a batch class, when and why do you use it?
4. differentiate between Workflow rule and Process Builder
5. what is a permission set and why do you use it?
6. how do you create multiple users in Salesforce org?
7. Can you assign same profile to multiple users at a time?
8. how many triggers can be written for an object?
9. how multiple actions/functionalities can be defined in single
trigger?
10. define Master detail relationship?
11. I have an existing master relationship between two objects,
now business req is child object shouldn't delete when parent
object is deleted. how will you achieve it.
12. How do you deploy changes using change sets?
13. I have made some changes in a Profile,can we deploy the
Profile using change sets?
14. I have added some IP ranges in a profile in my Developer
Sandbox,how can I deploy this to prod?
15. Different types of sanboxes and how many can you have in
your org?
16. Best practices while writing a batch class
17. how much % of code should be validated for Apex Class and
Apex Trigger before deploying?
18. Do you know anything about SOAP API and REST API? tell me
some usage cases?
19. Any other deployment tools you worked other than change
sets?
20. What are record types and how useful are they?
30. how page layout is useful other than arranging field?
31. can you deploy a record type using change set?
32. can you deploy a page layout using change set?
33. what are governor limits?

BA Related questions

1. What standard objects are you most familiar with?

2. Describe a custom solution you helped implement that did not involve standard objects.

3. Explain a time when you needed to implemented different record types on an object? What was the reason
you chose to implement record types?

4. Describe an automated process you helped implement in Salesforce. What technical solution did you use to
enable the automation?
5. Describe an integration you helped implement with Salesforce. What system did you integrate and what
was the technology used for the integration?

6. Describe a custom User interface you helped implement (not a standard layout). Why was this needed over
a standard layout and what technology did you use?

7. If you have to implement a group of new users that require different opportunity layouts, different sales
processes, and different opportunity permissions, what configurations would you consider?

8. A business sponsor gives you a complex excel spreadsheet they want implemented in Salesforce, how would
you start to identify the right Salesforce solution?

9. A business sponsor has a spreadsheet of a 1000 Accounts they would like you to add activities to. They do
not have the Salesforce ID, only the ticker symbol. How would you insert the activities?

10. Write a User Story and Acceptance Criteria for a feature that automatically changes the Account Type to
“Customer” when an opportunity of type “New Business” has a stage change to “Closed Won.”

Company : Accenture, IBM,Vodafone,Birla Soft

user making changes

batch class also running

========
batch class getting called multiple times
from trigger

======
calling SOAP without WSDL

======
go beyond 101 when there is no scope

======
escalation rule on which field

calling web service from trigger without using future. I want to make quicker.

types of report in LEX

3 auto response

DML before API call.

Interview Questions faced by me:

=========== http://www.trifecta.com =========

1.
Whats r'ship between Account,Contact,Opportunity,Case

2.

Account n Contact has lookup relationship.


Coz u can create a Contact without any Account record connected.

But,if u connect 1 Account with other Contact,


then both r conncted with master-details R'ship.
If u del Account, Contact will be deleted.

3.
Can we make a field mandatory in trigger?

What all ways we can make a field compulsory?

4.
Difference between 15 dig n 18 dig record ID

5.
Use of External ID

6.
What is Universally required field in SF.

7.
What is Cross Obj Formula Field.

What is flow in this?


Parent to child or child to parent?
> Child to parent
8.
Cross Obj Formula Field Vs Rollup summary

9.
How to create a custom button/link n make it appear.

10.
What all errors u came across in SF.

What is Heap size issue?


What is internal server issue?

11.
What is REST API?
Why we go for that?

2 imp methods in it.


>Get() n Post()

12.
Inbound integration steps in SF?
(other SAP contacting SF by web service)

NO END POINT SETTING NEEDED.


Here we will go for OAuth setting, to authenticate user.

13.
Outbound integration steps in SF?
(SF contacting other SAP by web service)

we need to have "remote setting".


No OAuth

14.
SF has schema.
External system need to know abt that.
How it can?

> u can send WSDL file.

15.
How WSDL file help?
>
By converting it into a class

16.
How a SF class can be exposed?
> By using a keyword "Golbal" and a return type "Webservice"
Then only class will be able to generate WSDL file.
Generate WSDL.
The connect from outside.

17.
If we want to access more than 50k records in SV page, can we?

We can do by using "readOnly=true" in <Apex:page> tag.


AND AND AND
We shud not use any DML statement in the controller.
The we can access 5 lacs records!!!

18.
How can we set time based trigger for in minutes?
minimum duration in dropdown is HOURS

19.
Batch is async.
Explain.

20.
How to share Hashboard n reports

21.
How to ensure that existing records also coming into validation rule.
Which function to use in this?

You can export the Salesforce IDs of all the records, run an update and load the IDs onto
themselves (with Apex Dataloader, or Dataloader.io), and the validation rule will fire on all of them.
You will get errors for those that do not pass validation. You can then delete or update the records
that have errors.

22.
Execution sequence :
Order of execution in Salesforce:

1.Executes all BEFORE TRIGGERS.


2.VALIDATION RULES.
3.Executes all after triggers.
4.Executes assignment rules.
5.Executes auto-response rules.
6.Executes workflow rules.
7.If there are workflow field updates, updates the record again.
8.If the record was updated with workflow field updates, fires before and after triggers one more
time. Custom validation rules are not run again.
9.Executes escalation rules.
10.If the record contains a roll-up summary field or is part of a cross-object workflow, performs
calculations and updates the roll-up summary field in the parent record. Parent record goes through
save procedure.
11.If the parent record is updated, and a grand-parent record contains a roll-up summary field or is
part of a cross-object workflow, performs calculations and updates the roll-up summary field in the
parent record. Grand-parent record goes through save procedure.
12.Executes Criteria Based Sharing evaluation.
13.Commits all DML operations to the database.
14.Executes post-commit logic. Ex: Sending email.

Below questions were asked in my last interview. I couldn't able to answer the questions properly
which are highlighted in RED, will schedule a call with you to discuss the same.

Qs. 1 What is the difference between OWD and Sharing rule?


Qs. 2 What type of access you can provide through Sharing rule?
Qs. 3 What is Batch Apex?
Qs. 4 How can be prevent a Batch Apex from becoming recursive?
Or
What needs to be done to prevent Batch Apex from going into loop?
Qs. 5 How can be prevent an Apex trigger to become recursive?
Or
What needs to be done to prevent Apex trigger from going into loop?
Qs. 6 Can we Schedule the loading process of data-loader?
Qs. 7 Give me a use case for SOSL.
Qs. 8 When we will use SOSL and when we will use SOQL?
Qs. 9 What is the difference between 15 digit record ID and 18 digit record ID? Can you tell me where
15 digit ID is used and where 18 digit I is used?
Qs. 10 Can we use 15 digit ID in data loader?
Qs. 11 What is view state?
Qs. 12 If we delete a record from parent object in Master-detail relationship, then what happens to
the corresponding record of child object?
Qs. 13 If we delete a record from parent object in Master-detail relationship, then what happens to
the corresponding record of child object?
Qs. 14 What is the difference between Master-Detail and Lookup relationship?
Qs. 15 What is the difference between Junction object and objects in Master-Detail / Lookup
relationship?
Qs. 16 Have you worked on Test classes? What are they?
Qs. 17 Can you explain Sales life cycle or Sales standard functionality?
Qs. 18 What is the difference Standard controller, Custom controller and Controller extension?
Qs. 19 What is the difference between Custom object and custom setting?
Qs. 20 Can you give a use case for the following:
a) Junction object,
b) Object linked through Master-detail relation, and
c) Object linked through Lookup relationship
Qs. 21 What is the difference between Action function and Action support?
Qs. 22 What are the components you have used in visualforce?
Qs. 23 What is Static object?
Qs. 24 What is IsAttributeOf?
Qs. 25 What is Record-type?
Qs. 26 Give me a use case for Record-type?
Qs. 27 What is Permissionset?
Qs. 28 Give me a use case for Permissionset?
Qs. 29 What is Lightning experience?
Qs. 30 What is Joined Report? When we will use a Joined Report?
Qs. 31 What are the ways through which we can make a field required?

---------------------------------------------------------------------------------
Questions related to entire professional career and Project related questions?
---------------------------------------------------------------------------------
Qs. 1 Tell me about yourself?
Qs. 2 How did you move into Salesforce from Mainframe?
Qs. 3 What made you to move into Salesforce?
Qs. 4 Tell me about you last project?
Or
Tell me about POSE (Point of Sale Enablement System)
Qs. 5 How Salesforce is being used in American Express?
Qs. 6 What are object (Custom and Standard) used in your last project?
Qs. 7 Can you tell me the use of those objects? What type of data are being stored in those objects?
Qs. 8 How quotation and negotiations takes place between AMEX and their client for POS terminals?
How both the parties arrive at a particular price for POS machine?
Qs. 9 How your legacy system was linked with Salesforce applications?
Qs. 10 Have you done requirement gathering from business? What are different through which you
can gather requirement?
Qs. 11 What was your day to day activity when you were at onsite?
Qs. 12 What are the different role you have played as an onsite coordinator?
Qs. 13 Do you know about Apptus CPQ?
Qs. 14 What do you know about Neopost?

Company : Birla Soft


Transfer ownership in public group possible?

========

Lead conversion:
--
Mapping 1 custom lead field to 2 other objects (Opportunity and Contact Objects)

This is how I do it:


create another hidden field on the lead object, I'll call it lead_2
create a workflow rule that triggers when
the first lead field (lead_1) is not blank AND lead_1 is not equal to lead_2
create a field update on lead_2, use the formula editor and set it equal to lead_1
activate the rule
you can then map one of these fields to the opportunity and the other to the contact

=============
Auto populate new :

https://help.salesforce.com/articleView?id=predefined_field_values.htm&type=5

And also

<apex:page standardController="CustomObject__c"
action="{!URLFOR($Action.CustomObject__c.New, null, ['Name'='Default Value', Master-
Detail__c='Default Value'], true)}"
/>

=================

WF = make status : active


Trigger = error is static is active

WHat will happen?

=================

DML Operation On Visualforce Page Load In Salesforce:

https://www.biswajeetsamal.com/blog/dml-operation-on-visualforce-page-load-in-salesforce/

We can not perform DML in Constrcutor.

=================

What is Mixed DML error?


https://help.salesforce.com/articleView?id=000240364&type=1

=================
How to automatically refresh the page after I add/edit a "Custom line item" from the opportunity
page?

https://developer.salesforce.com/forums/?id=9060G0000005Vm7QAE

==================
Company : IBM, L and T

Avoid dup by WFR:


https://focusonforce.com/configuration/preventing-duplicate-records-with-salesforce-config/

===========

Report Types:
1.Summary
2.Tabular
3.Matrix
4.Joined

===========

Few important points (usually interview type Questions of salesforce ):

One Object can have only two Master-Detail relationships.


If we delete record A (First Master detail relationship is always primary) – then child record c will
be deleted.
If we delete record B then in this case also child record C will be deleted.
If we delete record c then only C will be deleted , master record will not be deleted.
If child C has two Master record A and B, Where A is primary relation then Child record C will
inherit the look and feel of Parent object A.

============

Calling batch from another?

============

Min duration of schedule class repeatation?

============

Types os asycn options?


https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_async_overview.htm
============

Time out err from Trigger.


How u will resolve?

============

Logic in APEX class.


How to call from VFP.

1.Getter /Setter
2.Action
3.Consrcots
4.action button
5.remoting

================

Action fun Vs Remoting:


https://www.biswajeetsamal.com/blog/difference-between-remote-action-and-action-function-in-
salesforce/

================

http://www.sfdcbook.co/2018/12/difference-between-lightning-components.html
=================

Lightning Data Service benefits :


Use Lightning Data Service to load, create, edit, or delete a record in your component without
requiring Apex code. Lightning Data Service handles sharing rules and field-level security for you.
In addition to simplifying access to Salesforce data, Lightning Data Service improves performance
and user interface consistency.

=================

Company : Infosys

Finish mandatory in Schedule apex?

APEX class will focus on object and field level security


Types of asynch apex?

https://developer.salesforce.com/forums/?id=906F0000000B3FPIA0

Limits:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm

How REST is called?

https://trailhead.salesforce.com/en/content/learn/modules/apex_integration_services/apex_integra
tion_rest_callouts

https://www.biswajeetsamal.com/blog/limit-class-and-limit-methods-in-salesforce/

https://www.forcetalks.com/blog/salesforce-apex-test-class-best-practices/

March-April 2019 – New questions

Company : Bank of America

1.Owd is private and one user is still able to see and edit the object. How it is possible.

Ans -From Profile or P'set access

2. There is one picklist field having 3 value A, B, C. One user can see A and B value and other user
can see C value .. why?

>> Record type setting

3. There are 10 user having same profile now client want to reduce access for 5 user how you will
do?
Ans- Permission set to creae -- and add those user to whom we want to give access

4. In masterdetails relationship can we update field by using workflow?

Ans -Yes

5. Can we send outbound message by process builder?

Ans - no

Deloitte

1) How can you establish one to one relationship in Salesforce?


2) Difference between Profiles and Permission Set?
3) Explain Hierchical Custom Setting?
4) Have you ever worked on Change Set?
5) Explain Outbound and Inbound change set?
6) Have you ever worked on Data loader tool?
7) Diffrence Between Export and ExportAll?
8) Have you ever woked on Reports and dashboards?
9) Explain BucketField?
10) Different types of Sandboxes?
11) Explain Developer Pro Sandbox, Size, and Refresh interval?
12) Have you worked on Batch Apex? Explain
13) What is the use of Database.Stateful? Why we need to use that ?
14) I have a requirement like i need to schedule a class with an interval of every 15 mins?
15) What is the minimum interval time of schedule class salesforce provided?

Infosys, Wipro

View state in Lighting:


Lightning doesn't make any arrangement to automatically pass state between the server and client, unlike
Visualforce. This makes Lightning much faster in normal situations, because there's no coding/decoding of
large structures every time any little request is made, and also reduces bandwidth usage on mobile devices,
since the entire state isn't transferred each time. It also passes back plain JSON instead of HTML, which
further reduces the bandwidth of each request.

=====================

Sharing common code in component:

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_helper.htm
====================

Sharing code in Lightning:

http://sfdcfacts.com/lightning/share-code-between-lightning-components-using-js-library/

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/oo_cmp_attributes.htm

===================

Ways of applying CSS:

A.Applying CSS for top level elements


B.Applying CSS for descendant elements

A.Applying CSS for top level elements:


-- Top level elements are those, which are directly connected to <HTML> and not under any other tag.
--In our code, we have <h2> and <ul> tags which can be considered as Top level elements.
--While applying CSS for them, we MUST write "THIS without space" format.

Ex:
.THIS.white {
background-color: white;
}

Note: There is no space between THIS and white.

B.Applying CSS for descendant elements:

-- Descendant elements are those, which are NOT directly connected to <HTML> and they are under any
other tag.
--In our code, we have <li> tag which can be considered as Descendant elements.
--While applying CSS for them, we MUST write "THIS with space" format.

=============================
=============================

Lightning interfaces:
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_interfaces.htm

===========

Using Component as Tab:


force:appHostable
Allows a component to be used as a custom tab in Lightning Experience or the Salesforce app. For more
information, see Add Lightning Components as Custom Tabs in a Lightning Experience App.

============

Navigate to another component:


navigateToMyComponent : function(component, event, helper) {
var evt = $A.get("e.force:navigateToComponent");
evt.setParams({
componentDef : "c:myComponent",
componentAttributes: {
contactName : component.get("v.contact.Name")
}
});
evt.fire();
}

===========

URL param in Lightning:


http://bobbuzzard.blogspot.com/2018/06/accessing-url-parameters-in-summer-18.html

============

Tech Mahindra

https://developer.salesforce.com/blogs/developer-relations/2017/04/lightning-inter-component-
communication-patterns.html

https://developer.salesforce.com/docs/component-library/bundle/lightning:recordEditForm/documentation

method not exist:


https://salesforce.stackexchange.com/questions/165854/helper-method-error-says-is-not-a-function

https://salesforce.stackexchange.com/questions/172265/can-we-access-auraenabled-variables-in-
auraenabled-methods

Big Object limits:


https://success.salesforce.com/answers?id=9063A000000ifBQQAY

Types of channel:

https://developer.salesforce.com/blogs/engineering/2013/04/managing-lookup-skew-to-avoid-record-lock-
exceptions.html

https://www.salesforcetutorial.com/salesforce-integration-testing/
Exp in Github:
https://guides.github.com/activities/hello-world/

Limit in Queuable interface:


no limit

What is limit in Queuable interface:


https://www.mstsolutions.com/technical/queueable-interface/
>> chain job no limit

Types of authorisation:
https://trailhead.salesforce.com/en/content/learn/modules/mobile_sdk_introduction/mobilesdk_intro_security
Deloitte, Hyd

Interview Questions

1. How to migrate data from one org to another in data loader?


>> export data from one org, and load the same to other as per the table name, field name etc

2. How Data Loader help to pull large data from other platform?
>>we can use “bulk API” feature of data loader

3. If there are four classes in the sandbox and first three classes have 100% code coverage and
fourth class 0% code Coverage.

Will the deployment will be success or fail?


>> pass (avg needs to be min 75%)

4. If we don't have Test Classes for 10-15 apex classes then how will you deploy to production as
it is a urgent requirement?
>> ideally we should not as it will lower down code coverage

5. While deploying the dashboards what are the basic precautions we should take?
>> we need to check all reports are included as well as access is given

6. How to deploy dashboard to production?


>> change set. Include all reports and add dashboard and deploy

7. If a new user is created to your org what is the licence you give so that he can access few
tabs.>> we can give salesforce platform

8. Can we deploy profiles from sandbox to production?


>> yes
Integration Questions:

1. what is integration ?
A. Integration is a process of connecting two applications
2. what is webservices ?
A. Webservices is a functionality or code which helps to us to do integration.

3. what is Protocal ?
A. Protocal is contains set of instructions or rules.

4. How many types of API’s avaliable in salesforce ?


A. SOAP API, REST API, Bulk API and Streaming API.

5. What is Call In and Call Out?

A. Call In is used to exposing our webservices to another users


Call Out is used to invoking or consuming our webservices to others.

6. What is WSDL ?
A. WSDL stands for Webservices Description Langugage.
It contains types, messages,port types and Binding.

7. How SOAP can be accessed ?


A. SOAP can be communicate through WSDL file, without WSDL file we can’t do integration.
Message format in SOAP is XML

8. How to do callout integration ?


A. Generate WSDL code from class
Path: setup-develop -apex class

9. Limitataions of WSDL file ?


A. File must be in .WSDL extenstion.
Multiple port types and binding will not allowed
Import and Inheritance operations are not supported.

10. What is remote site settings ?


A. Remote site settings is used to authorize the endpoint and allow us to whom integrate(end user)

11. How manys ways to XML parsing ?


A. They are two ways of XML parsing
1. XML streams
2. XML DOM

12. How to read root element in XML DOM ?


A. getroot element

13.How to read child element in XML DOM ?


A. getchild element

14.How to read all child elements in XML DOM ?


A. getchild elements

15. How to read text between tags ?


A. gettext

16. How SOAP and REST will Communicate ?


A. SOAP will communicate through WSDL file
REST will communicate through HTTP file

17. what are methods in REST


A. HTTPGET, HTTPPUT, HTTPPOST and HTTPDELETE

18. How REST can be accessed or which message format REST supports ?
A. REST supports both XML and JSON

19. What is JSON ?


JSON stands for JavaScript Object Notation. JSON is light weighted than XML

T-System, India – Jan

1. Steps taken to keep the data clean in Salesforce

>> we use validation rules, schedule class

1.
2. What to do if your salesforce org is closing the limit

>> we contact SF support and pay

1.
2. If your manager is on leave and you want to do the regular activity what your manager
does, then what is the appropriate solution that you can come up with

>> sharing rules

1.
2. What is Health Check and how do you use it

>> feature by default SF provided by which any issue we have in SF org, will be shown in report

1.
2. How do you differentiate between Customer Account and Personal account in Salesforce

>> Person accounts don’t have contacts

1.
2. Explain Sales Cycle

>> Campaign >> Lead >> Account >> Contact >> Oppty >> Quote

1.
2. Why do we use Entitlement Management. Explain with example
>> This is for business process where we have SLA, means in decided time we need to give
solution to customer

1.
2. Different types of reports and what is the basic report that Sales Manager will use and
how will you build that report

>> Tabular, Summary, Matrix, Joined


>> Summary

1.
2. What is delegated access

>> When someone is absent in office, other employee can work for his

1.
2. At what stage of Sales Cycle will Quote be used

>> when we have to send proposal to client

1.
2. What are App Exchange and did you use any App Exchange in Salesforce? If yes,
provide me an detailed example.

>> this is like play store to install apps in Salesforce.


We used DocuSign app for digital signature

1.
2. Different type of Sandbox and what is the difference between each sandbox

The following are the four types of sandboxes:

1. Developer Sandbox
Developer sandboxes copy only the organization’s configuration and not data.

You can create or load data up to 200 MB , which is enough for many development and testing
tasks.

You can refresh a Developer sandbox once per day.

2. Developer Pro Sandbox


A Developer Pro sandbox will store up to 1 GB of data (about 500k records).

It is otherwise similar to a Developer sandbox.

3. Partial Copy Sandbox:


Partial Copy sandboxes are generally intended to be used as testing environments.

They can copy configuration as well as some data from PROD.


IQ:
These environments can be used for quality assurance tasks such as user acceptance testing and
training.

The sandbox can include up to 5 GB of data.

You can refresh a Partial Copy sandbox every five days.

4. Full Copy Sandbox :


It stores a copy of your production organization and all its data.

NewYork Life Insurance, – 17 Jan


1.App design of your current project
2.Trigger callout best practices
3.Why p'set required?
4.how can i share some Records?
5.When OWD = Private, in Account obj,Profile = VA Yes
the user will be able to see other user's records?
6.Can we call another batch class in a batch class?
yes, Using?
7.From which method, we call another batch class?
8.Why do we call another batch class from finish method?
why we call only from finish method?
10.Difference between Javascript Remoting and Action Function?
11.how you do Integration with other platform?
Say real case from your project?
12.What you do with Force.com?
13.How you do Authentication when performing Outbound message?
other than session id

CSS Corp, Chennai – 10 Jan


1. How we can allow permission to access the 'salary' object who is working from india as HR
manager ? Counter question as field permission?

2. type of Relationships?

3. Many to many relationships?

4. Explain about the triggers in SF?

5. How about the Project management tool are using?

6. visualforce vs lightning?

7. Are Apex and Visualforce different things?

8. Agile methodology?
9. As admin what about your roles and responsibilities?

10. Data loader explain?

11. CMS to salesforce Integration process?

Recent questions from Dec 2018:

https://developer.salesforce.com/blogs/developer-relations/2017/04/lightning-inter-
component-communication-patterns.html

https://resources.docs.salesforce.com/216/latest/en-
us/sfdc/pdf/salesforce_platform_encryption_implementation_guide.pdf

https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_platform_cache_global_variable.htm

https://developer.salesforce.com/blogs/developer-relations/2011/02/quick-look-into-
javascript-remoting.html

https://developer.salesforce.com/forums/?id=906F000000098HvIAI

https://developer.salesforce.com/blogs/developer-relations/2015/04/creating-lightning-
components-1.html

1k ercords in VFP

I have 3 objects, each having some thousands of records. Neither are connected or have
relationship with each other. How do I delete all the records at once?

What is Pagenation in Salesforce?


>> to show large num of records page wise format

Once I do a bulk update, how do I know which records were failed?


>> database.insert function

Have you refreshed Sandbox or built any new?


>> going to prod and press refresh button

Can we have multiple Objects in a Trigger?


>> yes

Can you explain me about Security in Salesforce?


>> explained in class, Object wise, Record wise, Field wise

Difference between Salesforce Classic and Lightning?


>> Look and feel, mobile compatibility
How do you migrate code to production in Salesforce?
>> change set

What is Data Skew?


>> when we have large num of child records

What is Cross Site Script?


>> process of hacking website by injecting script code

What is Territory Management?


>> helps to manage and implement territory in business area

Difference between Java & APEX?


>> JAVA needs memory clearing mechanism

1. How many SOQL Queries we can have in one transaction.


Ans. 100

2. Maximum number of Apex Jobs in Active State


Ans. 100
we done this in class

3. What is the Maximum View State Size in VF page.


Ans. 135 KB
we done this in class

4. What is Field level Security and How it is implemented?


Ans. profile >> object >> field level security >> make changes

we done this in class

5 What is Record Level Security and how it is implemented?


Ans. Role, Sharing rule, Manual sharing
we done this in class

6. Different actions possible in workflows? (All are mandatory to answer)


Ans.Email, field update, OBM, Task

we done this in class

7. Can we have Custom controller and Extention together in VF page.


Ans.
no

8. Can we have Integration callouts from Batch Class, if yes How?


Ans. Database.AllowsCallout
9. How will you do profile based testing while writing Unit test for the class.
Ans.
using @RunAs

11. How many record can be displayed in repeater or PageBlockTable in Visualforce ?


Ans. 2000

12.OWD for Parent is public Read Only. If User has – Create, Edit Permission on Master as
well as Detail Object. While creating record for detail object he selects parent record which
is not created by him. What will happen in this case ?
Ans. he can not see child

13. What is the difference between “apex:dataTable” and “apex:pageBlockTable”


components in Visualforce?
Ans. in Page block table Column headers will be displayed automatically.

14. We have “Time Based Workflow” and there is action scheduled to be executed. Can we
delete that workflow?
Ans. yes

15. What is Mandatory while creating User, Role or Profile?


Ans. Profile

1) Collection in SF
2) Diff between list and set
3) Have you worked on Map ?
4) Tyoes of method in SF
5) I have 1000 records how many time does START,EXECUTE,FINISH will run
6) Why we are getting view state error? how is it happenning
7) how we are getting 101 error
8) why we are getting mixed DML error?
9) how many columns can we have in flows
10) Test class best practice?
11) why we are using dynamic soql and dynamic APEX
12) trigger best practice?
13) 150 DML error?
14) some scenario based question which i couldn't remember.

can we call future method in batch class >> no

In test classes we can use future method >> yes, in start and stop method

Test.startTest();
myClass.futuremethod( someID );
Test.stopTest();

in test classes ,chances to get an error mixed DML error ,if it yes then how to rectify it.
>> using @future function

Test.startTest () and Test.stopTest() ---is used to get an fresh set of governor limits.
>> yes

is there any advantage apart from this(governor limits).


>> we can use to call future functions

Can we disable trigger in Prod?


We wont disable Trigger in prod.
We can do in Sandbox, and port to Prod. Or using Eclipse.

we made some changes to one profile ,,, then how to revert those changes in single shot.. >>
Take profile from Prod

why we choose mostly workflow rule instead of process builder (apart from outbound messages)
>> we have 3 types of detailed evaluation criteria

we cant create time dependent workflow action for created, and every time it's edited ,,,WHY
it is not possible ,,what is the internal process
>> as this will trigger the action everytime for any irrelevant changes so maintaining such action in
future becomes hard

IBM, IND -- 30 Nov


How to make searching in Lightning?
http://sfdcmonkey.com/2016/12/15/search-accounts-lightning-component/

Helper benefits
https://salesforce.stackexchange.com/questions/141337/shared-helper-code-in-lightning-components

https://salesforce.stackexchange.com/questions/141337/shared-helper-code-in-lightning-components

https://developer.salesforce.com/blogs/developer-relations/2015/03/debugging-lightning-components.html
--Line by line debug

Domain in LEX:
https://salesforce.stackexchange.com/questions/150499/is-it-necessary-domain-enabling-in-lightningwhy

Lightning Locker Service:


Cross-site scripting (XSS) is a code injection attack that allows an attacker to execute malicious JavaScript
in another user's browser.Instead, he exploits a vulnerability in a website that the victim visits, in order to get
the website to deliver the malicious JavaScript for him.

=================
=================

NTT Data, Hyderabad - 31 Oct:

1. User has full permission at profile level for Campaign object but unable to create any
record? What could be the reason?
2. What is Sales process?
3. What is Sales Cloud, Service Cloud and Marketing Cloud?
4. How to use Service console?
5. How will you migrate data from SIEBEL CRM into Salesforce?
6. Which fields you will use in Upsert operation?
7. What is the difference between Trigger.New and Trigger.NewMap?
8. On which events we will use Trigger.NewMap and Trigger.oldMap?
9. How many jobs you can create?
10. As part of the daily activity, we are using data loader to insert the data into Salesforce,
at the same time trigger should be inactive. How will you inactive the Trigger. Will you do
this in Production.
11. What is order of execution in Salesforce?
12. What is Grant access using Hierarchy and What is Role Hierarchy?

13. Account ----- Record ---- Filed ------- Hot, Cool, Warm
(Whenever the Hot or cool or Warm is updated, we should know from when the field value
changed to Hot from Cool. How will you achieve this ? (Configuration & Customization)).
14. What are the Test Class best practices?
15. What is the difference between Test.startTest and Test.Stoptest?
16. What is @TestSetup Annotation?
17. What is @isTest(SeeAllData=true)?

18. Scenario∷

In User object, we have one pick-list field (related value), the pick-list field values are
Queue1, Queue2 and Queue3 &Queue4.

 Whenever any user select the Queue1, the user should added to Queue1, like the same
way if any user select Queue2 add them to Queue2, any user select Queue3&Queue4
add them to Queue3&Queue4.
 Whenever we changed the user from Queue1 to Queue2 then user will be removed from
Queue1 and added to Queue2, do the same way for other queues.
Amazon 22 Oct , IND:

1.How to automate data loading?


2. What are the challenges faced while loading data?
3. What needs to be done if the OWD for account is private, and above hierarchy should see the
records? And if the case is reverse, below hierarchy should see the record?
4. How do you do for account at OWD is private, if the subordinates has to access and superiors
should not access
5. On Account, in amount field, if validation is there >100 throw error, and a field update is there
to make it 200, and what happens if I enter 50?
6. As in same case as above, in place of validation rule if I have trigger to throw error, what
happens if enter 50?
7. As Process Builder is used now, so do you think we don’t need workflows? In which scenario
we should use workflow and in which scenario we should use process builder, please give one
example each.

Google 19 Oct , USA:

How to delete compo from ANT:


https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/daas_destructive_changes.htm

============

Custom setting

https://developer.salesforce.com/forums/?id=9060G000000MVgMQAW

============

Steps after sandbox refresh:

https://salesforce.stackexchange.com/questions/955/post-sandbox-refresh-steps

============

What is version control?


https://www.atlassian.com/git/tutorials/what-is-version-control

============
Bulk code:

https://developer.salesforce.com/page/Best_Practice%3A_Bulkify_Your_Code
===========

Query performance | fetching millions records:

https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/langCon_apex_SOQL_VLSQ.htm

https://help.salesforce.com/articleView?id=How-to-make-my-SOQL-query-
selective&language=en_US&type=1

https://support.workato.com/support/solutions/articles/1000236530-improving-soql-query-
performance-with-indexed-fields

https://help.salesforce.com/articleView?id=000181277&type=1

===========

Metadata and custom setting:

https://success.salesforce.com/answers?id=9063A0000019bJgQAI

==========

Named Credentials as Callout Endpoints


A named credential specifies the URL of a callout endpoint and its required authentication
parameters in one definition. Salesforce manages all authentication for Apex callouts that specify a
named credential as the callout endpoint so that your code doesn’t have to. You can also skip
remote site settings, which are otherwise required for callouts to external sites, for the site defined
in the named credential.

HttpRequest req = new HttpRequest();


req.setEndpoint('callout:My_Named_Credential/some_path');
req.setMethod('GET');
Http http = new Http();
HTTPResponse res = http.send(req);
System.debug(res.getBody());

=====================
=====================
How to deploy Lightning compo:

https://developer.salesforce.com/forums/?id=906F0000000D6QjIAK

=====================
Heap size issue:
https://help.salesforce.com/articleView?id=000004186&type=1

=====================
Using call out in Trigger:
https://help.salesforce.com/articleView?id=000176570&type=1

=====================

Future Vs Queable:
https://developer.salesforce.com/forums/?id=906F0000000kK6VIAU

=====================

https://developer.salesforce.com/blogs/developer-relations/2015/05/queueable-apex-future.html

=====================

The batch size thats specified in the document is for a single batch.You can process as many
batches as you like limiting to 2000 per 24 hour rolling period.

10k is the maximum batch size that you can set per batch.So say you have 50K records then 5
batches will be the minimum no of batches required .

Bulk API can process any no of records .Only limit you may have to look is no of batches per
day.This limit is 2000 batches per 24 hour .(On rolling basis)

======================

Encryptetions:

https://trailhead.salesforce.com/modules/spe_admins/units/spe_admins_set_up

======================

https://resources.docs.salesforce.com/206/latest/en-
us/sfdc/pdf/salesforce_platform_encryption_tipsheet.pdf

======================

https://salesforce.stackexchange.com/questions/206775/how-to-disable-lightning-button-after-click

======================

https://www.google.co.in/search?ei=Qkm-W-
fQM5eo9QPC25moDA&q=events+on+label++click+in+salesforce&oq=events+on+label++click+in+sal
esforce&gs_l=psy-ab.3...40150.40850.0.41070.6.6.0.0.0.0.212.537.0j2j1.3.0....0...1.1.64.psy-
ab..3.0.0....0.NUCNLQkAaKg
=========================

Infosys 12 Oct , IND:

Bypass VF for permission set:


https://www.saxasolutions.com/2017/09/06/bypassing-salesforce-validation-rule/

==============

Manager not able to see ur record.


Why?

==============

CPQ product types:


https://help.salesforce.com/articleView?id=cpq_types_of_products.htm&type=5

==============

Change button name dynamically:


https://salesforce.stackexchange.com/questions/126940/how-to-change-label-of-button-in-lightning-
experience/169256

==============

Resolve Lightning refresh:

https://www.desynit.com/dev-zone/salesforce-development/disable-browser-caching-for-lightning-
components/

==============

Platform event:
https://developer.salesforce.com/docs/atlas.en-
us.platform_events.meta/platform_events/platform_events_intro_emp.htm

==============

Make call out from Batch APEX:

https://developer.salesforce.com/forums/?id=9060G000000BdVjQAK

==============

Call out Limit:


https://www.forcetalks.com/salesforce-topic/what-is-the-callout-limits-within-batch-apex-in-
salesforce/
===============

When is REST?

https://dzone.com/articles/web-services-architecture

===============

Data Skew?

https://sfdcbeginner.com/what-is-data-skew-in-salesforce.html

===============

Step by step picklist values changes:

Trigger
Use collection to store all PL values

===============

Add PL values dynamically:


https://developer.salesforce.com/forums/?id=906F000000099BuIAI

Using Metadata API

For VFP:
https://developer.salesforce.com/forums/?id=906F000000099BuIAI

===============

Process 1 lacs acc and update their contacts:

https://help.salesforce.com/articleView?id=000267082&language=en_US&type=1

===============

Samsung 28 Sept , USA:

PL Vs Record Page in Lightning:

https://success.salesforce.com/answers?id=9063A000000DrXHQA0

call one batch from another batch salesforce

========
Process Builder processes can be successfully deployed from one environment to another using
Change Sets. You need to select "Flow Definition" in the Component drop down when adding
components. Also: When you deploy the change set, the process needs to be "activated" if its not
active post deployment.

============

Process builder consideration:


https://help.salesforce.com/articleView?id=vpm_deploy_changeset.htm&type=5

============

HCL, IND - 12 Sept

Testing @future class?


>>
https://salesforce.stackexchange.com/questions/165456/how-to-call-the-future-method-in-test-class

=============

How to show different opty process to different users?


>> Sales path

https://trailhead.salesforce.com/en/modules/sales_admin_optimize_salesforce_for_selling/units/sale
s_admin_optimize_for_selling_unit_1

=============

How to create dynamic entities in Lightning?

https://sfdcpanther.wordpress.com/2018/02/23/dynamic-binding-salesforce-lightning-component/

Paytm, IND - 6 Sept

1.Named and Unnamed License in SF:


https://success.salesforce.com/answers?id=90630000000gkabAAA

2.Version Control in Salesforce: (2.40 min)


https://www.youtube.com/watch?v=7kNS0J5sQY8

More:
https://developer.salesforce.com/docs/atlas.en-
us.dev_lifecycle.meta/dev_lifecycle/lifecycle_adv_tools.htm
3.
Bulk API to process SF data from outside:
https://developer.salesforce.com/docs/atlas.en-
us.api_asynch.meta/api_asynch/asynch_api_intro.htm

4.
How to automate data management in Salesforce:
(using CLI)

https://www.jitendrazaa.com/blog/salesforce/tutorial-of-command-line-dataloader-salesforce/

5.
Which Salesforce edition u r using? Why?
>> unlimited, all features

Flipkart - IND, 4 Sept (Tech Lead)

1.Parsing XML:
https://developer.salesforce.com/forums/?id=906F0000000MJKNIA4

2.Pop up in VF and DML:


https://developer.salesforce.com/forums/?id=906F000000097X9IAI

3.Lightning locker services benefits:


https://www.codescience.com/blog/2017/salesforce-lightning-lockerservice-is-coming-updated

4.Service cloud object:


https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_erd_support.htm

5.How to schedule APEX:


https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm

Batch Class Ques - IBM, USA : 31 Aug

How to make callout from Batch?

Using :: Database.AllowsCallouts

Can we call Future method from batch?

No, as both async

Integration from Batch:::


global class BatchSync implements Database.Batchable<sObject>, Database.AllowsCallouts {
public String query = 'Select ID, Name from Account';
global Database.QueryLocator start(Database.BatchableContext BC) {
return Database.getQueryLocator(query);
}

global void execute(Database.BatchableContext BC, List<Account> records) {


String endpoint;

for ( integer i = 0; i< records.size(); i++ ){


try {
HttpRequest req = new HttpRequest();
HttpResponse res = new HttpResponse();
Http http = new Http();
// Set values to Params

endpoint = 'Your endpoint';

req.setHeader('Authorization', header);
req.setHeader('Content-Type', 'application/json');
req.setEndpoint(endpoint);
req.setMethod('POST');
req.setBody('Information you wanna send');
req.setCompressed(true); // This is imp according to SF, but please check if
// the webservice accepts the info. Mine did not :P
// Had to set it to false

if (!Test.isRunningTest()) {
res = http.send(req);
String sJson = res.getBody();
System.debug('Str:' + res.getBody());
}
// now do what u want to with response.
}
catch (Exception e) {
System.debug('Error:' + e.getMessage() + 'LN:' + e.getLineNumber() );
}
}
}

global void finish(Database.BatchableContext BC){


}
}

======================

Salesforce, USA : 24 Aug


Diff business process to diff customers from diff country:
https://trailhead.salesforce.com/en/modules/admin_intro_opptys_leads/units/admin_intro_opptys_le
ads_opportunities

============

How to give diff access to same dept?


>> Pset

============

CTI integration:

https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/

============

Harley Davidson, USA : 24 Aug

Refresh component:
<aura:handler event="force:refreshView" action="{!c.doInit}" />

You could try firing force:refreshView during an aura:locationChange event. Add the locationChange
handler to your component.
1
<aura:handler event="aura:locationChange" action="{!c.update}"/>
And handle the event in your JS code.
view sourceprint?
update : function (component, event, helper) {
// Get the new location token from the event if needed
var loc = event.getParam("token");
$A.get('e.force:refreshView').fire();
}

=================
How to refresh the specific Lightning component not the lightning page?

https://salesforce.stackexchange.com/questions/174741/how-to-refresh-the-specific-lightning-
component-not-the-lightning-page

==================
Lightning - Related List:

https://salesforce.stackexchange.com/questions/123945/lightning-related-list

==================

Serialisation in Lightning:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_json_json.htm

==================

Show hide Lightning datatable column?

==================

Avoid contact duplicate:


https://success.salesforce.com/answers?id=9063A000000ZqXkQAK

==================

Preventing dup records:


https://developer.salesforce.com/forums/?id=906F0000000AgTlIAK

===================

APEX error handelling:


https://developer.salesforce.com/page/An_Introduction_to_Exception_Handling

===================
Queueable Apex:
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_queueing_jobs.htm

===================
Conditional exception handelling:

====================
====================
====================
====================
====================

IBM, IND : 17 Aug


1.Issues in deployment:
https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/commondeploymentissues.htm

2.Developer Best Practices Checklist:


https://developer.salesforce.com/blogs/engineering/2015/05/developer-practices-checklist.html

https://developer.salesforce.com/forums/?id=906F000000092VoIAI

3.Code review best practise:


https://salesforce.stackexchange.com/questions/89043/salesforce-code-review-best-practices-for-
controllers

4.APIs in SF:
https://developer.salesforce.com/page/Salesforce_APIs

5.
APEX Vs Java:
https://techilaservices.com/difference-apex-java/

6.
SQL Vs SOQL:
https://developer.salesforce.com/forums/?id=906F0000000AtwbIAC

https://developer.salesforce.com/page/From_SQL_to_SOQL

7.
Debug managed package:
https://www.google.co.in/search?ei=k9t2W8m-
BovS8wXL17DoCA&q=managed+packages+in+salesforce+debug&oq=managed+packages+in+sales
force+debug&gs_l=psy-ab.3..33i22i29i30k1l2.16537.21765.0.21948.10.10.0.0.0.0.417.1659.2-
2j2j1.5.0....0...1c.1.64.psy-ab..6.4.1378...0i22i30k1j33i160k1j33i10k1.0.167CDVRVi7U

https://developer.salesforce.com/forums/?id=9060G000000I6WMQA0

https://success.salesforce.com/ideaView?id=087300000007Py4AAE

8.
Debug packages on client org: as we dont have access

https://salesforce.stackexchange.com/questions/12313/how-to-check-debug-logs-for-installed-app

============================
============================

Wipro, IND : 6 Aug

https://trailhead.salesforce.com/en/projects/communities_theme_layout/steps/custom_search

Benefits of SKuid:
https://www.skuid.com/

Jitterbit benefits:
https://www.jitterbit.com/blog/jitterbit-cloud-data-loader-for-salesforce-is-here/

Steel brick CPQ:


http://www.summa.com/blog/what-is-salesforce-steelbrick-cpq-how-can-it-help-your-business

==========

https://www.google.co.in/search?q=Ethans+tech+solutions+-
+Pune%2C+Maharashtra&oq=Ethans+tech+solutions+-
+Pune%2C+Maharashtra&aqs=chrome..69i57j69i60l2.780j0j4&sourceid=chrome&ie=UTF-8

https://www.amazon.in/Salesforce-Lightning-Application-Development-Essentials/dp/1787124673

https://automationchampion.com/2018/07/24/uncover-hidden-nuggets-of-validation-rule-prized-
arrows-in-admins-
quiver/?utm_content=buffer45b5c&utm_medium=social&utm_source=twitter.com&utm_campaign=b
uffer

Dell, USA : 6 Aug

VF to LEX:
https://guhasdevforce.com/2017/09/24/automatically-convert-existing-visualforce-pages-to-lightning/
https://medium.com/salesforcesummaries/migrating-visualforce-pages-to-lightning-a-salesforce-
summary-9ef6375baf29
==============

How to create data table :


https://www.lightningdesignsystem.com/components/data-tables/

===============

Issues with data table lightning:


https://github.com/salesforce-ux/design-system/issues/148

https://github.com/salesforce-ux/design-system/issues/396

https://developer.salesforce.com/forums/?id=9060G0000005YE8QAM

===============

https://www.google.co.in/search?q=process+builder+flow+salesforce&oq=process+builder+to+flow+
&aqs=chrome.1.69i57j0l5.5401j0j4&sourceid=chrome&ie=UTF-8

============
Platform
https://trailhead.salesforce.com/modules/platform_events_basics/units/platform_events_define_publ
ish

========
Debugging Lightning Issues:

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_debug_mode.htm

==========

Performance issue Lightning:


https://www.jitendrazaa.com/blog/salesforce/15-ways-to-improve-performance-of-lightning-
components-in-salesforce/

https://www.slideshare.net/developerforce/lightning-components-performance-best-practices
==========
HCL, USA : 19 July

How to create RUS in Acc and Contact without code?


Without code?
PB and Flows

https://salesforceweek.ly/2015/02/how-to-create-roll-up-summaries-using-flow.html

https://help.salesforce.com/articleView?id=000249282&type=1
============
Calling future method from a trigger?

Instead of using a class that has a future method that can make just 10 requests for all your records,
create a batch apex class that processes the record requests one at a time. The execute() method of
the class will use the 10 calls just for 1 record, you can include a retry mechanism in case they time
out. Since the batch is executed asynchronously you should be able to process a very large number
of records like this.

=============
How to override button Lightning?

http://sfdcmonkey.com/2017/06/12/override-standard-buttons-lightning-component/

=============

Honeywell , USA : 18 July

Types of API:

https://developer.salesforce.com/page/Salesforce_APIs

============

https://www.google.co.in/search?q=path+vs+put+Rest&oq=path+vs+put+Rest&aqs=chrome..69i57j0l
5.3953j0j4&sourceid=chrome&ie=UTF-8

=============
CTI means what?
https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_intro.htm
================
PUT Vs Patch:

Thus, a PUT request always contains a full resource.

A PATCH request on the other hand, is used to make changes to part of the resource at a location.

===============
How to Authenticate API calls?

https://developer.salesforce.com/docs/atlas.en-
us.api_rest.meta/api_rest/intro_understanding_authentication.htm

===============

Why SSL in SF?

https://help.salesforce.com/articleView?id=000007225&type=1

================
Design pattern:

https://developer.salesforce.com/page/Apex_Design_Patterns

===============

Trigger.New vs Trigger.Old:

===============

What is setter getter?

===============
Why use 3rd evaluation criteria in WFR?
>>
===============

Can we delete time dependent action?


>> xxxx
================

How to reduce View state size?

https://help.salesforce.com/articleView?id=000221049&type=1

Cogni, USA : 3 July

How to do code level record sharing?


https://developer.salesforce.com/page/Using_Apex_Managed_Sharing_to_Create_Custom_Record_
Sharing_Logic

Explain docu sign integration

How to convert LR to MDR?


We need to remove roll up summary field

How to do APEX sharing?


http://sfdcsrini.blogspot.com/2015/01/what-is-apex-sharing-how-to-share.html

how we cn call APEX class using PB?


>>
invocablemethods
What is bucket field?

Types of forecasting?

What is Opportunity Splits?


Opportunity splitting lets you share revenue from an opportunity with your team members. Team
members working on an opportunity can roll their individual sales credits into quota and pipeline
reports for the entire team.

We can not change oppty without acc ownership

============
What is Entitlement in SF?

What is Milestones ?
Milestones represent required steps in your support management process, like first response times.
Set up and customize milestones in your org so they can be added to entitlement processes and
applied to support records like cases and work orders.
==============

https://www.google.co.in/search?q=salesforce+knowledge&oq=salesforce+knowled&aqs=chrome.0.
0j69i65j69i57j69i60l3.5200j0j4&sourceid=chrome&ie=UTF-8

================
email to case:

================
What is skills in Live agent?

Create and Assign Live Agent Skills


Skills identify your agents’ areas of expertise. When you assign an agent to a skill, that agent
receives chat requests that are related to the agent’s skill areas. You can also empower your
supervisors to assign skills to agents. This information applies to Live Agent routing for chats only.

============
What is Omni channel?
Omni-Channel is a robust routing system, and it needs to know what to route and how to route it.
Like a real delivery truck, there’s a network of parts that work together to ensure everything runs
smoothly, and incoming items go to the right agent.

============

How to call controller in JS remoting?

=============
action support n function:

http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html

=============
test class of call out:
We use HttpCalloutMock

==============

Enterprise WSDL

Strongly typed, the object and its attributes are fixed.

Contains the metadata about all standard and custom fields and objects.

Can only be used against your Salesforce instance.


Partner WSDL

Is loosely typed, the object and its attributes can be variable.

Does not contain metadata about objects and fields. Takes an array of key-value pairs.

Can be used against many Salesforce.com organizations.

=============
Continuous Integration Using Jenkins. Jenkins is an open-source, extensible automation server for
implementing continuous integration and continuous delivery. You can easily integrate Salesforce
DX into the Jenkins framework to automate testing of Salesforce applications against scratch orgs.

===========
Batch class test class:

http://www.infallibletechie.com/2013/09/test-class-for-batch-apex-in-salesforce.html

-==========

types of events in SF Lightning?

How SF knows which is component event?

Amazon, IND : 26 June

https://help.salesforce.com/articleView?id=knowledge_compare_classic_lightning.htm&type=5

https://help.salesforce.com/articleView?id=knowledge_lightning_limitations.htm&type=5

Omni channel?

Live Agent?

Yes Bank, Onsite : 22 June

What are some Govt limits in call outs?


A single Apex transaction can make a maximum of 100 callouts to an HTTP request or an API call.
The default timeout is 10 seconds. A custom timeout can be defined for each callout. The minimum
is 1 millisecond and the maximum is 120,000 milliseconds. See the examples in the next section for
how to set custom timeouts for Web services or HTTP callouts.

======

Benefits of external ID?

Why number, text and email only used for ext id?

======
Which field helps us to keep client's data secure?
(this is not about Field level security setting)

===============

Explain action function in depth?

https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_compref_actionFunction.htm

======
How to call VF from flow?

http://www.infallibletechie.com/2015/10/how-to-call-visual-workflow-in.html

======
explain how to use getter and setter?

https://developer.salesforce.com/forums/?id=906F0000000k9mkIAA

======

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_methods.htm

======
Explain wrapper class?

http://www.infallibletechie.com/2015/03/sample-wrapper-class-using-apex-in.html

=======

https://trailhead.salesforce.com/en/modules/service_omnichannel

=======
features of Service cloud?
https://trailhead.salesforce.com/en/modules/service_basics

=======
LIVE agent:

http://www.salesforceben.com/an-introduction-to-salesforce-live-agent/

Adobe, India : 8 June

Calling 2 call outs and getting value from 1st

================
@RestResource(urlMapping='/Account/*')
global with sharing class MyRestResource {

@HttpDelete
global static void doDelete() {
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
String accountId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);
Account account = [SELECT Id FROM Account WHERE Id = :accountId];
delete account;
}

@HttpGet
global static Account doGet() {
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
String accountId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);
Account result = [SELECT Id, Name, Phone, Website FROM Account WHERE Id = :accountId];
return result;
}

@HttpPost
global static String doPost(String name,
String phone, String website) {
Account account = new Account();
account.Name = name;
account.phone = phone;
account.website = website;
insert account;
return account.Id;
}
}

==================
oAuth process?

==================
SOQL injection?

https://trailhead.salesforce.com/en/modules/secdev_injection_vulnerabilities/units/secdev_inject_so
ql_injection

===================

The following pages provide more information on how to access and use Salesforce APIs:

REST API - Access objects in your organization using REST.


SOAP API - Integrate your organization’s data with other applications using SOAP.
Tooling API - Build custom development tools for Force.com applications. Coming soon!
Chatter REST API - Access Chatter feeds and social data such as users, groups, followers, and files
using REST.
Bulk API - Load or delete large numbers of records.
Metadata API - Manage customizations in your org and build tools that manage the metadata model
(not the data, itself).
Streaming API - Provide a stream of data reflecting data changes in your organization.
Apex REST API - Build your own REST API in Apex. This API exposes Apex classes as RESTful
Web services.
Apex SOAP API - Create custom SOAP Web services in Apex. This API exposes Apex classes as
SOAP Web services.
Data.com API - Data.com provides 100% complete, high quality data, updated in real-time in the
cloud, and with comprehensive coverage worldwide.

====================

Consume:

https://trailhead.salesforce.com/en/modules/apex_integration_services/units/apex_integration_rest_
callouts

====================

Lightning locker services:


https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security_code.htm

=====================
The framework’s content security policy mandates that external JavaScript libraries must be
uploaded to Salesforce static resources. For more information on static resources, see “Static
Resources” in the Salesforce online help.

Here’s an example of using <ltng:require>.

<ltng:require scripts="{!$Resource.***resourceName***}"
afterScriptsLoaded="{!c.afterScriptsLoaded}" />

==============
Lightning Data Service
Use Lightning Data Service to load, create, edit, or delete a record in your component without
requiring Apex code. Lightning Data Service handles sharing rules and field-level security for you. In
addition to not needing Apex, Lightning Data Service improves performance and user interface
consistency.
At the simplest level, you can think of Lightning Data Service as the Lightning Components version
of the Visualforce standard controller. While this statement is an over-simplification, it serves to
illustrate a point. Whenever possible, use Lightning Data Service to read and modify Salesforce data
in your components.

================

data service limitation:

https://developer.salesforce.com/docs/atlas.en-
us.lightning.meta/lightning/data_service_considerations.htm

Mindtree, India : 7 June

Remote Action code:

https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_js_remoting_example.htm

=============

Using get element by ID in JS:


https://www.w3schools.com/jsref/met_document_getelementbyid.asp
=============
Action function:

https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_compref_actionFunction.htm

=============

How to run batch class:

Database.executeBatch(new MyClass());

=============
After you submit your queueable class for execution, the job is added to the queue and will be
processed when system resources become available. You can monitor the status of your job
programmatically by querying AsyncApexJob or through the user interface in Setup by entering
Apex Jobs in the Quick Find box, then selecting Apex Jobs.

To query information about your submitted job, perform a SOQL query on AsyncApexJob by filtering
on the job ID that the System.enqueueJob method returns. This example uses the jobID variable that
was obtained in the previous example.

1
AsyncApexJob jobInfo = [SELECT Status,NumberOfErrors FROM AsyncApexJob WHERE Id=:jobID];

==============
Queueable Versus Future:

https://trailhead.salesforce.com/en/modules/asynchronous_apex/units/async_apex_queueable

==============

DML Statements vs. Database Class Methods

https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/langCon_apex_dml_database.htm

==============

Testing call out:

Testing HTTP Callouts by Implementing the HttpCalloutMock Interface


Provide an implementation for the HttpCalloutMock interface to specify the response sent in the
respond method, which the Apex runtime calls to send a response for a callout.

1
global class YourHttpCalloutMockImpl implements HttpCalloutMock {
2
global HTTPResponse respond(HTTPRequest req) {
3
// Create a fake response.
4
// Set response values, and
5
// return response.
6
}
7
}

TCS, India : 5 June

what is responsiveness?

====================

Lightning supports Responsive pages?

https://developer.salesforce.com/blogs/developer-relations/2017/04/mastering-salesforce-lightning-
design-system-grids-lightning-layouts.html

====================

count num of records in batch class:


https://developer.salesforce.com/forums/?id=906F0000000kGqFIAU

====================

Diff between JS controller and Helper?

====================

A single Apex class annotated with @RestResource can't have multiple methods annotated with the
same HTTP request method. For example, the same class can't have two methods annotated with
@HttpGet.

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_rest_methods.htm

====================

future method works on?


>> list of object

===================
Cap Gemini : 25 May

Max call / trans: 100


========

Some visual workflow

=========
When performing a SOQL query from Apex using the FOR UPDATE option, is the locking mechanism
optimistic

=========
Bulkification means what?

=========

Schema class :

getGlobalDescribe()
Returns a map of all sObject names (keys) to sObject tokens (values) for the standard and custom
objects defined in your organization.

==========

To add a flow to a Visualforce page, embed it using the <flow:interview> component

==========
With sharing:

==========
Testing HTTP Callouts by Implementing the HttpCalloutMock Interface:

Provide an implementation for the HttpCalloutMock interface to specify the response sent in the
respond method, which the Apex runtime calls to send a response for a callout.

global class YourHttpCalloutMockImpl implements HttpCalloutMock {

global HTTPResponse respond(HTTPRequest req) {

// Create a fake response.

// Set response values, and


// return response.

==============
Return type of future methods:

Methods with the future annotation must be static methods, and can only return a void type

==============

Adding error in SF:

someRecord.SomeField__c.addError('Custom Message');
or
someRecord.addError('Custom Message');

ApexPages.addmessage(new ApexPages.message(ApexPages.severity.FATAL,'Please enter


Account name'));

Also diff between them?


addError -- during DML

If allOrNone is true, addError reverts entire DML operation. If an uncaught exception reaches the
DML layer, the entire operation is reverted.
================

LinkedIN ,IND : 24 May

Conditionally calling batch B from batch A

https://developer.salesforce.com/forums/?id=906F0000000DD12IAG

============

no static variable then? recusrice


Map<String,Integer> testMap = new Map<String,Integer>();
testMap.put('A',1);
testMap.put('A',2);

system.debug(testMap); == ??

=============
What is use of Readonly attribute in VFP:
Visualforce pages that use read-only mode for the entire page can’t use data manipulation language
(DML) operations, they can call getter, setter, and action methods which affect form and other user
interface elements on the page, make additional read-only queries, and so on.

-- Normally, queries for a single Visualforce page request may not retrieve more than 50,000 rows. In
read-only mode, this limit is relaxed to allow querying up to 1 million rows.

-- the readOnly attribute also increases the maximum number of items in a collection that can be
iterated over using components such as <apex:dataTable>, <apex:dataList>, and <apex:repeat>.
This limit increased from1,000 items to 10,000.

For more details along with a code to understand please check below link:

https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_controller_readonly_context_pagelevel.htm

================

https://www.google.co.in/search?q=DML+on+loading+visualforce+page&oq=DML+on+loading+visua
lforce+page&aqs=chrome..69i57.19504j0j4&sourceid=chrome&ie=UTF-8

================
Action function vs remote action:

http://biswajeetsamal.com/blog/difference-between-remote-action-and-action-function-in-salesforce/

--------------
What is action region?
https://success.salesforce.com/answers?id=9063A0000019bJgQAI

==============
Reason why you would use custom settings instead of custom metadata:

1. Hierarchies - Custom metadata types do not purport to replace hierarchy custom settings which
allow you to vary values based on users and profiles across the org. These custom settings can also
be referenced in formulas, so can be used in formula fields, validation rules, workflow rules, and
visualforce. (Documentation here)

2. Web service credentials - If you’re using test credentials in a sandbox, you don’t have any reason
to deploy them to production. More importantly, if you create a sandbox, you don’t want the config
for the production versions of your Web Services being created automatically and used by default.
However, it is usually best to use Named Credentials for this.

3. Custom setting records’ values can be edited in code, while custom metadata cannot. If you will
need to modify your configuration programmatically for any reason (say you’re creating a config
console for the user), custom metadata will not work.

Also please check the below information link on this topic:


https://www.xgeek.net/salesforce/using-custom-metadata-types-and-custom-settings-in-salesforce/

==========================
Difference between Custom Settings and Custom Metadata:

Advantages to Custom Metadata:

1. Most importantly, as stated before, they are Metadata and thus deployable! No more annoying
configuration after deployment, which you have to do with Custom Settings. They're also refreshed
to sandboxes, so you don't need to create Apex classes to generate your default Custom Setting
records.

2. They have WAY more options that Custom Settings: picklist fields, long text areas (in Spring '17),
page layouts, and validation rules (though as of Winter '17 these are not deployable either by change
set or by migration tool - weird!)

3. The beauty that is Metadata Relationships! You can create lookups between Custom Metadata
objects. Additionally, you can create an Object Definition lookup - so you're relating Custom
Metadata to Standard or Custom Object definitions. Additionally, in Spring '17 you can create a
dependent lookup to a Field Definition on that object. (Documentation here)

4. Custom Settings have the same permission to edit the records and to edit the configuration. Both
can be done with the "Configure Application" permission. With Custom Metadata, you can edit the
records with "Configure Application" but you require "Author Apex" to edit the configuration.

5. Custom Metadata types have a lot of additional features specific to developing managed
packages. You can configure the visibility and editability of fields an objects both by the org that
installs the package and by upgrades to the package.

============

What is CPU timeout error and how to get rid of?

https://help.salesforce.com/articleView?id=000232681&language=en_US&type=1

===========

Can we call batch class from Trigger?


>>
Callout is a ASynchronous process where as Trigger is Dynamic / Synchrinous.

That means it is not directly possible to do a webservice callout from a triiger.

But using @Future annotation we can convert the Trigger into a Asynchrinous Class and we can use
a Callout method.
===========

How to make DML from the VFP where readonly attribute used?
>> Not possible
==========

Adidas , USA : 22 May

Limitations of customer community:

https://help.salesforce.com/articleView?id=rss_limitations.htm&type=0

===========

Large user going to connect to community.


what steps u wil take?

https://help.salesforce.com/articleView?id=networks_reporting.htm&type=5

==========

What is Cloud Flow Designer?

===========
WRF Vs PB Vs Flows ?

============
Web service and DML in same step:
https://developer.salesforce.com/forums/?id=906F00000008zuxIAA

============
Using CSV located on FTP to used with data loader:

https://developer.salesforce.com/forums/?id=906F0000000BTDUIA4

Large data:
https://www.jitendrazaa.com/blog/salesforce/using-dataloader-and-ant-to-backup-salesforce-data-
on-ftp-server-video/

============
What is streaming API:
https://developer.salesforce.com/docs/atlas.en-
us.api_streaming.meta/api_streaming/intro_stream.htm

===========
diff between Salesforce & Salesforce Platform ?
===========

Design pattern usage:

Apex allows you to build just about any custom solution on the Force.com platform. But what are the
common design patterns and associated best practices for Apex development, and how can you
leverage these patterns and best practices to avoid reinventing the wheel?

This article describes how to leverage common design patterns to optimize your code and ensure
reusability, maintainability and performance. This is a wiki version of the Dreamforce 2012
presentation 'Apex Design Patterns'.

Singleton - minimizing object instantiation for improved performance and to mitigate impact of
governor limits
Strategy - defining a family of algorithms, enscapsulating each one and making them
interchangeable and selectable at runtime
Decorator - extending the functionality of an sObject in Apex
Facade - simplifying the execution of classes with complex interfaces (e.g. web service callouts)
Composite - treating a group of objects in a similar manner to a single instance of that object
Bulk State Transition - efficiently tracking the change of a field value in a trigger and executing
functionality based on this change

===========
vfp slow:
https://developer.salesforce.com/docs/atlas.en-
us.salesforce_visualforce_best_practices.meta/salesforce_visualforce_best_practices/pages_best_p
ractices_perf_optimizations.htm

============

Twitter , USA : 18 May

Using External JavaScript Libraries in Lightning:

Here’s an example of using <ltng:require>.

<ltng:require scripts="{!$Resource.resourceName}"
afterScriptsLoaded="{!c.afterScriptsLoaded}" />

Upload multiple files in Lightning:


https://salesforce.stackexchange.com/questions/183805/lightning-component-to-upload-multiple-
document-at-same-time

=============
Debug in lightning:

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_debug_mode.htm

https://developer.salesforce.com/blogs/developer-relations/2015/03/debugging-lightning-
components.html
===============
What is solution for "Cannot Create Master-Detail Relationship"?
=============
UI vs Lightning Tags
==============

How page layout helps in field level setup?

===============

US Bank , USA : 18 May


What is best practise in Trigger?
1.One object must have only one trigger.
2.Trigger must have handler class / APEX Class.
3.Trigger needs to be logic less.
4.Trigger must be written with the help of Context variable.

=============

APIs Vs External Object:

https://help.salesforce.com/articleView?id=platform_connect_general_limits.htm&type=5

SF and Heroku:
some examples

=============
By what way we can fetch data from external service / external data platform to SF:

Connect your Salesforce org to any data anywhere via a Salesforce Connect custom adapter that
you create with the Apex Connector Framework.

Integration

External object

Data loader

==================
How data loader can help to pull large data from other platform?

Facebook , USA : 18 May


Explain Data model of Salesforce?
-- Object, Fields, R’ship

==============

https://success.salesforce.com/answers?id=90630000000hJdiAAE
===============
https://success.salesforce.com/ideaView?id=08730000000lBFNAA2
=============
When site.com need?
-- for public facing platform

==========

avoid 101:
https://help.salesforce.com/articleView?id=000181404&type=1

===========
Issues in using Future method:

Future Method Performance Best Practices


Salesforce uses a queue-based framework to handle asynchronous processes from such sources as
future methods and batch Apex. This queue is used to balance request workload across
organizations. Use the following best practices to ensure your organization is efficiently using the
queue for your asynchronous processes.

Avoid adding large numbers of future methods to the asynchronous queue, if possible. If more than
2,000 unprocessed requests from a single organization are in the queue, any additional requests
from the same organization will be delayed while the queue handles requests from other
organizations.
Ensure that future methods execute as fast as possible. To ensure fast execution of batch jobs,
minimize Web service callout times and tune queries used in your future methods. The longer the
future method executes, the more likely other queued requests are delayed when there are a large
number of requests in the queue.
Test your future methods at scale. Where possible, test using an environment that generates the
maximum number of future methods you’d expect to handle. This will help determine if delays will
occur.
Consider using batch Apex instead of future methods to process large numbers of records.

=============
how to update a record in future method:

https://developer.salesforce.com/forums/?id=906F0000000Ans8IAC
=============
https://help.salesforce.com/articleView?id=000199485&type=1&language=en_US
=============
REST steps:
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_rest_code_sample_basic.htm

==============
bypass VR for user:

https://www.saxasolutions.com/2017/09/06/bypassing-salesforce-validation-rule/

================
Inbound Vs Outbound:

Inbound webservice is something which salesforce org will consume. There could be webservices
published by some other 3rd party tool. You can import that webservice and salesforce can use that
to call methods from 3rd party tool.

Oubound Webservice is something that you publish from salesforce org and 3rd party tools
consume it to get data/ record from your salesforce org.

====================

How to call a standard record from visualforce for partner community?

=====================
How to ensure the records are shared with users of same partner in partner commu?
>> Make OWD = Private will take care

=====================

Disney , USA : 10 May

Migrating roles / profile:


https://success.salesforce.com/answers?id=90630000000p1N3AAI

http://stephenscholtz.com/201201/migrating-role-hierarchy-between-environments-salesforce

===============
Autorabit used for:
Continuous integration

===============

How to load acc and contact:


1.First Acc
2.Get export
3.Map account IDs with contacts
4.Load contacts

===============

change set limitations:

https://www.flosum.com/limitations-of-changesets/

===============
Benefits of DX?
https://developer.salesforce.com/platform/dx

===============

Sony , USA : 8 May

How to make oppty mandatory in lead conversion?


https://www.shellblack.com/administration/enforce-opportunity-creation-on-lead-conversion/

==========
Custom lead conversion:
over ride convert button

==========
order of execution means?

==========
how to avoid recursive trigger?

Static var

==========

Why to use extension?

===========
What is context var?
============

REST vs SOAP?

===========
Handelling REST integration errors?

try{
Id leadId = RestContext.request.params.get('leadId');
Lead myLead = [SELECT Id FROM Lead WHERE Id = :leadId];
//...convert lead
return myLead;
}catch(System.StringException e){
RestContext.response.statusCode = 400;
RestContext.response.body = 'Param: leadId is not a valid Id';
}catch(System.QueryException e){
RestContext.response.statusCode = 404;
RestContext.response.body = 'Requested Lead not found';
}catch(Exception e){ //something else happened
RestContext.response.statusCode = 500;
RestContext.response.body = e.getMessage();
}

===========
Order of execution of Process builder vs WFR?

WFR first
PB later

===========

REST API error code:


https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/errorcodes.htm

===========
How to commu between compo?

===========
What is aura method?
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_tag_method.htm

===========

Navigate to sobject record using ID?

https://developer.salesforce.com/docs/atlas.en-
us.lightning.meta/lightning/ref_force_navigateToSObject.htm
=============

Lightning Data Service

Use Lightning Data Service to load, create, edit, or delete a record in your component without
requiring Apex code. Lightning Data Service handles sharing rules and field-level security for you. In
addition to not needing Apex, Lightning Data Service improves performance and user interface
consistency.

At the simplest level, you can think of Lightning Data Service as the Lightning Components version
of the Visualforce standard controller. While this statement is an over-simplification, it serves to
illustrate a point. Whenever possible, use Lightning Data Service to read and modify Salesforce data
in your components.

Data access with Lightning Data Service is simpler than the equivalent using a services
======================

Infosys , USA : 7 May

Passing sObject in future:

https://developer.salesforce.com/blogs/developer-relations/2013/06/passing-objects-to-future-
annotated-methods.html

================
Difference between Remote Action and Action Function in Salesforce:

http://biswajeetsamal.com/blog/difference-between-remote-action-and-action-function-in-salesforce/

================
========================
making callout from trigger possible?

========================
VF Best Practices:
https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_best_practices_performance.htm#pages_best_practices_performance

========================
Communication between Lightning component:
https://developer.salesforce.com/blogs/developer-relations/2017/04/lightning-inter-component-
communication-patterns.html

========================
Dell, USA : 7 May

http://biswajeetsamal.com/blog/difference-between-remote-action-and-action-function-in-salesforce/

Remote action - life cycle

================
Normally, queries for a single Visualforce page request may not retrieve more than 50,000 rows. In
read-only mode, this limit is relaxed to allow querying up to 1,000,000 rows.

In addition to querying many more rows, the readOnly attribute also increases the maximum number
of items in a collection that can be iterated over using components such as <apex:dataTable>,
<apex:dataList>, and <apex:repeat>. This limit increased from 1,000 items to 10,000. Here is a simple
controller and page demonstrating this:

==========================
Call out from Batch possible?

Flipkart, IND : 27 April

Debug Logs Best Practices:

https://www.jitendrazaa.com/blog/salesforce/advance-apex-debugging-in-salesforce-and-best-
practices-videos/

=========

IQ:How to work on business logic where we can auto submit request to manager in configuration?
>> Using Process Builder's "submit for approval" action

===========

Dependant PL in Lightning:
https://developer.salesforce.com/docs/atlas.en-
us.fundamentals.meta/fundamentals/adg_simple_app_adv_field_dependencies_try_it_out.htm

http://sfdcmonkey.com/2017/02/18/dependent-picklist-fields-lightning-component/

============
Using related list in Lightning:
https://help.salesforce.com/articleView?id=actions_in_lex.htm&type=0

===========
Related list issue in Lightning:
https://success.salesforce.com/answers?id=9063A000000pDJlQAM

===========
Show hide compoent based on Profile:
https://salesforce.stackexchange.com/questions/132371/hide-lightning-component-from-community-
guest-user

===========
Show hide compoent based in lightning without code:

http://www.salesforceben.com/dynamically-showhide-lightning-components/

============
retURL and SaveURL:
http://theblogreaders.com/differentiate-saveurl-cancelurl-returl-in-salesforce-url-parameters/

============

query queue SOQL Salesforce:

Queues are stored as a Group SObject, so

select Id from Group where Name = 'My Group' and Type = 'Queue'

=============
Dynamic SOQL - Why we use?

Dynamic SOQL refers to the creation of a SOQL string at run time with Apex code. Dynamic SOQL
enables you to create more flexible applications. For example, you can create a search based on
input from an end user or update records with varying field names.

To create a dynamic SOQL query at run time, use the database query method, in one of the following
ways.

Return a single sObject when the query returns a single record:

sObject s = Database.query(string_limit_1);
Return a list of sObjects when the query returns more than a single record:

List<sObject> sobjList = Database.query(string);

===============
One object - 3 trigger:

How to control sequence?


-- We cant

===============
how to build MRD if record exists in those objects?

1.LR
2.Connect all child records with parent
3.CHange field type -- MDR
================

Custom setting types?

Custom settings are similar to custom objects and enable application developers to create custom
sets of data, as well as create and associate custom data for an organization, profile, or specific
user. All custom settings data is exposed in the application cache, which enables efficient access
without the cost of repeated queries to the database. This data can then be used by formula fields,
validation rules, flows, Apex, and the SOAP API.
There are two types of custom settings:
List Custom Settings
Hierarchy Custom Settings

=====================
How to get manager name from hierarchy list query ?

https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_methods_system_custom_settings.htm

CHECK

=======================
Fetch data from List custom setting:

You can get custom setting value without using SOQL,


Suppose you have custom setting Games__c.

You can get the list of records through :


List<Games__c> mcs = Games__c.getall().values();

To get individual record 'My Games' of custom setting :


Games__c objGame = Games__c.getValues('My Games');

==================

Understanding Apex Managed Sharing | Apex Developer Guide ...

Sharing is the act of granting a user or group of users permission to perform a set of actions on a
record or set of records. Sharing access can be granted using the Salesforce user interface and
Lightning Platform, or programmatically using Apex.
====================

How to invoke apex method from JavaScript?


https://developer.salesforce.com/forums/?id=906F00000008zaMIAQ

https://salesforce.stackexchange.com/questions/117978/calling-an-apex-method-from-javascript
====================

Working on large data on data loader:

(check something from these)

https://developer.salesforce.com/docs/atlas.en-
us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits
_platform_bulkapi.htm

https://help.salesforce.com/articleView?id=000205658&type=1

https://developer.salesforce.com/docs/atlas.en-
us.api_asynch.meta/api_asynch/asynch_api_concepts_limits.htm

https://developer.salesforce.com/forums/?id=906F0000000DDoOIAW
========================

Reliance, IND : 27 April

VFP Vs Lightning:
https://salesforce.stackexchange.com/questions/111502/difference-between-visualforce-and-
lightning-in-salesforce

https://developer.salesforce.com/forums/?id=9060G000000XdwyQAC

============
Trigger Best Practise:
============
Adding UI to LEX:

1.SLDS
2.Style in bundle

============
Batch Apex Best Practices:

Use extreme care if you are planning to invoke a batch job from a trigger. You must be able to
guarantee that the trigger will not add more batch jobs than the five that are allowed.

Use Database.Stateful with the class definition if you want to share variables or data across job
transactions. Otherwise, all instance variables are reset to their initial state at the start of each
transaction.

Methods declared as future cannot be called from a batch Apex class.

You cannot call the Database.executeBatch method from within any batch Apex method.

All methods in the class must be defined as global.

===================

Morgan Stanley, IND : 26 April

deleting custom report type:

Delete a custom report type by clicking Del next to the custom report type's name. All the data
stored in the custom report type will be deleted and cannot be restored from the Recycle Bin.

Important
ImportantWhen you delete a custom report type, any reports based on it are also deleted. Any
dashboard components created from a report based on a deleted custom report type display an
error message when viewed.

============

How to setup community?


https://help.salesforce.com/articleView?id=networks_creating.htm&type=5

====================

Salesforce to object integration:


https://trailhead.salesforce.com/modules/outlook_integration/units/outlook_integration_unit_2

====================

Security model in community:

Page 24:
https://resources.docs.salesforce.com/206/latest/en-us/sfdc/pdf/communities.pdf

====================

Issues with change set:


https://salesforce.stackexchange.com/questions/77105/what-are-the-advantages-disadvantages-of-
changesets-force-com-ideeclipse

====================
How to do quick deployment by using ANT deployment?

http://www.infallibletechie.com/2016/04/how-to-quick-deploy-using-apache-ant.html

======================
Security in Lightning:
https://developer.salesforce.com/blogs/engineering/2015/11/restrict-access-lightning-applications-
step-authentication.html

======================
Lead nurturing:
https://www.salesforce.com/blog/2014/04/5-lead-nurturing-best-practices-for-sales-and-
marketing.html

=======================

Bank Of America, USA : 26 April


Using cookies:
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_classes_sites_cookie.htm

==============
VF to Lightning data pass:

https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-visualforce-
communication.html

https://www.linkedin.com/pulse/embedding-lightning-component-vf-page-passing-from-kalloori-
ramesh

===============
How to Pass Data From One Component to Another in Salesforce Lightning?

https://www.forcetalks.com/blog/how-to-pass-data-from-one-component-to-another-in-salesforce-
lightning/

===============
Bulk data processing in Salesforce:

What is custom API in Salesforce?

How to do authorisation?

How many REST scenarios we can have in SF?


https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST

Continues integration steps:

=========

How the package is created in Jenkins?

=========

LinkedIn, IND : 25 April


Restful Methods
The below diagram shows mostly all the verbs (POST, GET, PUT, and DELETE) and an example of
what they would mean.

Let's assume that we have a RESTful web service is defined at the location.
http://demo.guru99.com/employee . When the client makes any request to this web service, it can
specify any of the normal HTTP verbs of GET, POST, DELETE and PUT. Below is what would happen
If the respective verbs were sent by the client.

POST – This would be used to create a new employee using the RESTful web service
GET - This would be used to get a list of all employee using the RESTful web service
PUT - This would be used to update all employee using the RESTful web service
DELETE - This would be used to delete all employee using the RESTful web service
================

Loading data using REST:

https://developer.salesforce.com/forums/?id=906F0000000BW0YIAW

https://medium.com/@weirdthinker15/uploading-a-document-to-salesforce-using-rest-api-
a7481324812a

=================

Emphasis, IND : 25 April

What is multi currency?

================

What is forecasts?
Forecasts can be used to predict future sales within an organization. Forecast data is aggregated
from each user’s opportunity records, and the related forecast category of each opportunity’s stage.
1.Customizable forecasting is used for customizing the forecast for the needs of your business. This
kind of forecasting is used for custom fiscal year, opportunity lead adjustments, territory
management, snapshots and forecast history.

2.Collaborative forecasting provides your business with more flexibility and more intuitive user
interface. The unique features of this kind of forecasting include ability to rename the forecast
categories, expandable forecast tables and forecasting on the opportunity splits.

Advantages of Salesforce forecasting:


Easy for the sales representative to maintain an accurate and correct representation of the
opportunity status.
It helps in adding the numbers so that it can produce a forecast that is based on close dates of
opportunities.

==============

Conact names

http://biswajeetsamal.com/blog/difference-between-remote-action-and-action-function-in-salesforce/

VF size if I binded List to it?

=============
showing more than 1000 records in visualforce:

use readonly attribute

=============
Calling future

COlsution:https://salesforce.stackexchange.com/questions/84363/how-to-call-a-future-method-from-
a-batch-class

==============

Benefits of Queable:
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_queueing_jobs.htm

===============
SOAP Vs REST:

===============
Samsung, USA : 23 April

How to process large number of records?

You will be pushing the boundaries of the apex and Visualforce here and the best you can do is to
run batches to process this data and keep it updated on a custom object nightly .

The visualforce can reference only the summarised custom object records .You can look at ETL
Tools like Mulesoft , Informatica Cloud ,etc to process data using bulk API and off platform and get
you the reports .

The other way would be to use solutions like Analytics cloud ,Tableau or Domo,BIRST etc (BI tools )
which has ability to handle huge data volumes and do analytics for you.

=============
How to use Angular JS with SF?

https://webkul.com/blog/angular-js-with-visualforce-page/
=============
Using continuous integration:
https://www.youtube.com/watch?v=nKDb3xpbzoo

=============

Harley Davidson, USA : 12 April

HTTP methods:
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_classes_restful_http.htm

=========
Uncommited work error:
Company : Godrej, India 12 April

HTTP methods:
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_classes_restful_http.htm

=========
Uncommited work error:

https://help.salesforce.com/articleView?id=000003701&type=1

=========
Calling webservice from trigger:

https://salesforce.stackexchange.com/questions/47803/how-to-invoke-webservice-from-trigger-
without-using-future-annotation

=======
Class vs Interface:
http://net-informations.com/faq/general/class-interface.htm

=======
Interfaces in SF:
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_classes_interfaces.htm

=======
Calling web service from batch:

you need to implement Database.AllowsCallouts interface in your batch which will allow you to make
callout.

this will be syntax for your

global class BatchClassName implements Database.Batchable<sObject>,Database.AllowsCallouts{

========
Call Web service from Trigger:
https://developer.salesforce.com/forums/?id=906F00000008rqjIAA
========
Do we have view state error in Lightning? >> No

Company : CNBC / NBC, 9 April - USA

What is Customizable Forecasting Concepts?


https://help.salesforce.com/articleView?id=newforecasts_overview.htm&type=5

=======
What’s the difference between Collaborative Forecasts and Customizable Forecasting?

https://help.salesforce.com/articleView?id=faq_forecasts3_whats_difference_between_versions.htm
&type=5

========
How to setup continuous integration:

https://www.jitendrazaa.com/blog/salesforce/continuous-integration-in-salesforce-using-jenkins-and-
git-video-tutorial/

=========

===================
What is journey builder:
https://help.salesforce.com/articleView?id=mc_jb_what_is_journey_builder.htm&type=5

https://github.com/sfmcdg

Company : Tech Mahindra, IND 3 April

===================
What is journey builder:
https://help.salesforce.com/articleView?id=mc_jb_what_is_journey_builder.htm&type=5
https://github.com/sfmcdg/Salesforce-Marketing-Cloud-Developer-Edition-Recipes/blob/master/how-
journey-builder-is-used-with-salesforce-marketing-cloud.md

====================
https://developer.salesforce.com/forums/?id=906F0000000BRd4IAG

https://developer.salesforce.com/forums/?id=906F000000091NoIAI

====================

Remote site setting:

https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_callouts_remote_site_settings.htm&type

===================

Order Of Execution:

==================
Stop Org id spamming in Web to lead:

use VR for ensuring....

==================
What is system events in SF?
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_system.htm

==================

Salesforce.com vs Force.com

https://www.quora.com/Whats-the-difference-between-Salesforce-com-and-Force-com

==================
An account team is a team of users who work together on an account. Use account teams to easily
track collaboration on accounts. Account teams aren't the same as opportunity teams, although they
have the same team member roles.

==================
Can we use FF in sharing rule?

No

==================

Opportunity teams show who's working on the opportunity and what each team member's role is,
making it easy to collaborate with your collegues.
=================
How CTI works?
https://www.youtube.com/watch?v=YGhK4AzFFoE

=================
How UTIcoming call works?

Because when you use CTI with Salesforce, any customer data that's associated with an incoming
phone number automatically pops up on your screen. Whenever a customer calls, their information
appears front and center for your support agents so that agents have everything they need to help
the customer.

Company : Nike, USA 19 March

Data merge in Salesforce:


https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/langCon_apex_dml_examples_merge.htm

====
Using file in VF:
https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_resources_reference.htm

====
2 Lightning component in one page - how to show in SF1

==========

Showing various components in one screen:

>> lightning dynamic page layout

============

What can we do to reduce CPU time?

- If you are performing mass inserts or updates, reduce the batch size.
- Use @future calls and asynchronous processing to move non-critical business logic out of
triggers.
- Convert Process Builder flows to Apex Triggers if possible.
- See this Salesforce.com article on writing efficient Apex code.
- Follow best practices for Triggers and Bulk processing
- Vote for this idea on the Salesforce Idea Exchange.

============

How to bypass Trigger n VR using Data loader?


>> using flag columnm in DL

============

For loop list batch size = 200

Maximum number of records returned for a Batch Apex query in Database.QueryLocator = 50


million
============

Process builder and MDR:

https://success.salesforce.com/answers?id=9063A000000p8ZmQAI

=============
Difference Between Change Sets and Eclipse Deployment Methods

1. Via eclipse we can deploy but Eclipse will not keep a track of the Classes and Pages which were
depolyed earlier . On the Other hand if we use Change Sets then all old deployemnts will be tracked .

2. Change Sets allow the ability to be cloned where as Eclipse doesnt .

3. A silly difference is Eclipse Uses Security Token as it is an 3rd Party System .

4. A change set can only be moved between a live site and its sandbox. Eclipse can be used to move
between any orgs like live site and developer org.

5. When using change sets when it deploys it runs all tests of apex code. If you have low covereage
or have code that will break with the new components you will not be able to deploy it will fail every
time while with Eclipse you can push code without coverage.

=============

Limits of change set:

=============

2
down vote
Changesets are a way to deploy components through the standard salesforce UI. A user first creates
a Outbound Changeset on the Source org and adds the components they wish to deploy. Once
ready, the changes is uploaded to a Destination ORG. The deployment can then be validated and
deployed from within the Destination ORG>

Pros:

Don't need to be a developer

UI interface

Anyone can see list of components deployed

Cons:

UI Interface (it's horrible)


The Ant Migration Tool uses a technology called Apache Ant to allow you to retrieve and deploy
meta-data. Besides typical deployments, there are countless uses for this, but here are some
common ones:

Deploying the same package to multiple orgs


Continuos integration
Auto-Backups
Editing object meta data through XML (often faster than using the UI)

=================

Company : Flipkart,IND 9 March

Lightning Compo Vs Lightning Page?

================================

Using same controller in VF and Lightning component?

================================
CSS / background color:
http://sfdcmonkey.com/2017/02/06/use-css-lightning-component/

http://sfdcmonkey.com/2017/12/22/change-lightningicon-color/

=================================
Deleting mass emails:
https://salesforce.stackexchange.com/questions/71082/can-we-delete-activity-history-for-email-
messages-sent-without-deleting-the-reco
https://developer.salesforce.com/docs/atlas.en-
us.api.meta/api/sforce_api_objects_emailmessage.htm
==================================

View state of message : Hello world


> Zero

===================================
2nd Highest salary :
https://developer.salesforce.com/forums/?id=906F0000000g05FIAQ

===================================

https://www.slideshare.net/bachovski/batchable-vs-future-vs-queueable

====

https://www.google.co.in/search?q=offset+in+salesforce&oq=offset+in+salesforce&aqs=chrome.0.0l
6.4514j1j9&sourceid=chrome&ie=UTF-8

=====
https://developer.salesforce.com/forums/?id=906F00000005HeHIAU

=====

VFP order of execution:


https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_controller_get_request.htm

======
Lighting our syntax:
https://developer.salesforce.com/blogs/developer-relations/2016/02/lightning-components-
visualforce-lightning.html
========
How to check by code, if it is lightning component or visualforce page

TBD

============
showing related list like thing , not

https://developer.salesforce.com/docs/atlas.en-
us.lightning.meta/lightning/aura_compref_lightning_datatable.htm

============
Lightning Data Service
Use Lightning Data Service to load, create, edit, or delete a record in your component without
requiring Apex code. Lightning Data Service handles sharing rules and field-level security for you. In
addition to not needing Apex, Lightning Data Service improves performance and user interface
consistency.
At the simplest level, you can think of Lightning Data Service as the Lightning Components version
of the Visualforce standard controller. While this statement is an over-simplification, it serves to
illustrate a point. Whenever possible, use Lightning Data Service to read and modify Salesforce data
in your components.

============
JSON benefits for Lightning:
https://ezeelive.com/json-advantages-disadvantages/

============
JQuery in Lightning:
http://salesforcetechhub.blogspot.in/2017/01/how-to-use-jquery-in-lightning.html

============
ETL with SF:
https://suyati.com/blog/top-10-etl-tools-salesforce-data-migration/

============
oDate with Salesforce:
https://help.salesforce.com/HTViewHelpDoc?id=odata_adapter_about.htm

Good example:
https://developer.salesforce.com/docs/atlas.en-
us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm
============
Process builder Vs Flows:

Visual Workflow:

Visual Workflow enables you to create flows, which are triggered by users rather than events. Unlike
Workflow, which always executes rules and actions behind the scenes, Visual Workflow offers
screens for displaying and collecting information from the user running the flow.

Flows aren’t tied to any one object. They can look up, create, update, and delete records for multiple
objects.

Process Builder:

The Process Builder’s simple and powerful design allows you to:Create your processes using a
convenient layout with point-and-click efficiency.
Create your whole process in one place rather than using multiple workflow rules.
Create processes by collaborating with different teams in your business.
Stop using Apex code to automate simple tasks.
=======================

Company : Paypal,INDIA 9 March

Benefits of SLDS:

https://trailhead.salesforce.com/en/modules/visualforce_mobile_salesforce1/units/visualforce_mobil
e_salesforce1_lightning_design

===================
SLDS structure:

====================
VF perfornamce:
https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_best_practices_performance.htm

=====================
Lightning Slider:
https://www.jitendrazaa.com/blog/salesforce/text-slider-lightning-component-for-salesforce-with-
live-demo/

=====================
Why Live agent?

Benefits of Live Agent?

https://trailhead.salesforce.com/en/modules/service_live_agent/units/service_live_agent_get_started
=====================

CPU limit issue + SOAP:

https://salesforce.stackexchange.com/questions/96410/solution-for-apex-cpu-time-limit-exceeded-
exception

https://help.salesforce.com/articleView?id=000232681&language=en_US&type=1

Company : Vodafone,Pune 5 March

CPU limit issue + SOAP:

https://salesforce.stackexchange.com/questions/96410/solution-for-apex-cpu-time-limit-exceeded-
exception

https://help.salesforce.com/articleView?id=000232681&language=en_US&type=1

=============
Calling DML before API callout?
https://success.salesforce.com/answers?id=90630000000giabAAA

How to do?
============

Calling Lightning component from VFP?

============
Invoke VisualForce page from button in Lightning component

https://developer.salesforce.com/forums/?id=9060G000000I4rDQAS
==============
Redirect to Visualforce page from lightning component

https://salesforce.stackexchange.com/questions/177588/redirect-to-visualforce-page-from-lightning-
component

================
Exposing Visualforce in a Lightning Component

https://github.com/salesforcejeff/jargon/blob/master/articles/iFramecomponent.md

=====================

Company : Nike, Feb 27

https://developer.salesforce.com/page/Integrate_Salesforce.com_With_Your_On-premise_Database

https://developer.salesforce.com/forums/?id=906F0000000BQLdIAO

=============

Errors finding in batch job:

global void execute(Database.batchablecontext bc) {

// Check batch status - IF COMPLETED then


AsyncApexJob a = [Select Id, Status, NumberOfErrors, JobItemsProcessed,
TotalJobItems, CreatedBy.Email, ExtendedStatus
from AsyncApexJob where Status == 'Failed'];

if(a.Status == 'Failed') {

// 1. Send Email (CSV created in execute method)

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();


// Send the email to the job submitter
String[] toAddresses = new String[] {a.CreatedBy.Email};
mail.setToAddresses(toAddresses);
mail.setSenderDisplayName('Batch Processing');
mail.setSubject('x70RecordExtract Status: ' + a.Status);
mail.setPlainTextBody('The batch Apex job processed ' + a.TotalJobItems +
' batches with '+ a.NumberOfErrors + ' failures. ExtendedStatus: ' + a.ExtendedStatus);

// Add your attachment to the email.

Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

// 2. database.executebatch(new chain_batch(),200);

}
}

==========================

https://success.salesforce.com/answers?id=9063A0000019bJgQAI

===========================
Custom setting Vs custom object

============================
https://trailhead.salesforce.com/modules/lightning_connect/units/lightning_connect_introduction

============================
External object API names have the suffix __x rather than __c.

============================
https://success.salesforce.com/ideaView?id=08730000000lAFWAA2

=============================
Limits of external object:
https://help.salesforce.com/articleView?id=platform_connect_general_limits.htm&type=5

=============================

External object:
https://trailhead.salesforce.com/projects/quickstart-lightning-connect/steps/quickstart-lightning-
connect3

per table or per data source?


=============================

External object is on premise or on cloud?

=============================
What is Lightning data service?
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service.htm

Limits of data service:


https://developer.salesforce.com/docs/atlas.en-
us.lightning.meta/lightning/data_service_considerations.htm

=========

Can we reset application level event value:


No

=========

Making error from Javascript on UI after call back:


https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_validate_fields.htm

http://sfdcmonkey.com/2017/12/26/validation-past-date-lightning-component/
=========
What is CLM?

http://cloudsense.com/platform/contract-lifecycle-management-clm/

==========

How to send acknowldgement in integration?


OBM

https://developer.salesforce.com/forums/?id=906F0000000BPg1IAG

===========

Call batch class from email service:


Yes

===========

http://developer.force.com/cookbook/cookbookRecipeSource?id=a1V300000009VFnEAM

=========
https://developer.salesforce.com/docs/atlas.en-
us.lightning.meta/lightning/components_devconsole_configs.htm

=========
Explain lightning bundle:
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_bundle.htm

=========
Company : Wipro, Feb 25

https://developer.salesforce.com/forums/?id=906F0000000kFHnIAM

http://salesforcecookcode.blogspot.in/2014/11/trigger-factory.html

https://help.salesforce.com/articleView?id=000005417&type=1

https://developer.salesforce.com/page/Integrate_Salesforce.com_With_Your_On-premise_Database

https://git-scm.com/book/en/v2/Git-Basics-Tagging

DX

https://help.salesforce.com/articleView?id=000005456&type=1

Last modified for formula field -- last modified due to make changes in reference field.>> no it wont
make

https://trailhead.salesforce.com/modules/entitlements/units/entitlements_starting

Milestones
Milestones represent required, time-dependent steps in your support process, like first response or
case resolution times. Milestones are added to entitlement processes to ensure that agents resolve
support records correctly and on time.

=================

https://developer.salesforce.com/docs/atlas.en-
us.sso.meta/sso/sso_examples_canvas.htm?search_text=ldap
=================

http://www.jitendrazaa.com/blog/salesforce/all-about-upsert-and-external-id-in-dataloader-and-apex-
videos/

================

https://success.salesforce.com/ideaView?id=08730000000Br67AAC

===============

http://www.jitendrazaa.com/blog/salesforce/continuous-integration-in-salesforce-using-jenkins-and-
git-video-tutorial/

==============

https://success.salesforce.com/answers?id=9063A0000019bJgQAI

==============

where to show maintenance message in SF?

=============

Company : Harley Davidson, Feb 20

How to work on pricebook sharing?


Sharing a pricebook -- disable this for group.

=============

change oppty currency:


https://success.salesforce.com/answers#!/feedtype=SINGLE_QUESTION_DETAIL&id=90630000000g
svwAAA

=============

Opportunity splitting lets you share revenue from an opportunity with your team members. Team
members working on an opportunity can roll their individual sales credits into quota and pipeline
reports for the entire team.

============

Overlay splits can add up to any percentage of the opportunity amount, sometimes exceeding 100%.
For example, your sales team can include sales engineers, product specialists, or partners who help
close deals but aren't directly responsible for them. Overlay forecasts let you predict revenue from
overlay splits. Forecast ...
============

https://help.salesforce.com/articleView?id=How-to-Load-Opportunity-Line-Items-using-Data-
Loader&language=en_US&type=1

===========

https://developer.salesforce.com/page/Loading_Large_Data_Sets_with_the_Force.com_Bulk_API

============

delete apex from PROD:

https://developer.salesforce.com/forums/?id=906F00000008yIyIAI

=============

insert records by APEX code:


max 10k

=============
FF limit: 5000 (combined)

=============

RUS limit - 25.


we can make up 50 too by help desk .
========

The DROP command removes a table from the database. All the tables' rows, indexes and privileges
will also be removed. DROP and TRUNCATE are DDL commands, whereas DELETE is a DML
command. DELETE operations can be rolled back (undone), while DROP and TRUNCATE operations
cannot be rolled back

=========
Guidelines for Using Opportunity Teams

Adding, editing, or deleting opportunity team members requires read/write access on the
opportunity.

=========

Order of execution for PB?

8.Before and after triggers are executed one more time if the workflow rule updates a field (BT & AT)
- Ex: If WFR updates 'Job Status' field, and on the object whose part this field is has any after update
trigger or before update Trigger; will execute to perform the needed things.

9.Process builder

==============

How to call a APEX class by custom button?

{!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")}
try{
var accId='{!Account.Id}'
var result = sforce.apex.execute("MyClass", "processDetails",{accId : accId});
var url = 'http://www.google.com'
window.open( url);
}
catch(err) {
txt="There was an error on this page.\n\n";
txt+="Error description: " + err.description + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
}

======================
You can set the readonly attribute on the VF page to display more than 10000 records as below.
<apex:page controller="customcontroller" readonly="true">

Or Pagination below:

You can either use client-side or server-side pagination. Either way, you won't be able to use
standard tools like StandardSetController or OFFSET.

Server-side, you need to use the @ReadOnly annotation to enable the 1,000,000 row limit, which
might look like this:

@RemoteAction @ReadOnly public static SObject[] getRecords(Integer page) {


SObject[] results = new SObject[0];
for(SObject[] records: [SELECT ... FROM SObject WHERE ... LIMIT :page*200]) {
results = records;
}
return results;
}
From there, you just repeatedly call the value until you get all of your results:

var buffer = []
function getPage(i) {
myController.getPage(i, function(event, data) {
if(data.length) {
data.forEach(function(v) {buffer.push(v)})
getPage(i+1)
}
}
}
Client-side, it'd look more like this example from the docs:

var result = sforce.connection.query("select id, name from account");


var it = new sforce.QueryResultIterator(result);
var buffer = [];
while (it.hasNext()) {
var account = it.next();
buffer.push(account);
}

=================================
Lightning Connect lets you seamlessly access data from external sources, side-by-side with your
Salesforce data. You can pull data from legacy systems such as SAP, Microsoft and Oracle in real
time, without making a copy of the data in Salesforce.

==================================
Report on exteral object?
>> not possible

==================================

How to get data from SAP to SF?

https://blogs.sap.com/2013/03/22/integration-of-sap-hana-with-salesforcecom/

===================================

Canvas:

Canvas enables you to easily integrate a third-party application in Salesforce. Canvas is a set of
tools and JavaScript APIs that you can use to expose an application as a canvas app. This means
you can take your new or existing applications and make them available to your users as part of
their Salesforce experience.

Company : Paytm, Feb 15

===================================
Joined report is not available in Lightning

===================================
You can call a batch from a trigger, but you need to be aware of potential limits you could hit. You
can only have 5 batch jobs queued or executing at once. If your trigger calls batch jobs each time,
then you could quickly exceed that limit.

==================================

============== Recent Interview =================


https://developer.salesforce.com/blogs/developer-relations/2014/10/enterprise-architecture-multi-
org-strategy.html

http://www.salesforcetutorial.com/salesforce-integration-testing/

https://developer.salesforce.com/page/Apex_Code_Best_Practices

Continues integration:
http://www.jitendrazaa.com/blog/salesforce/continuous-integration-in-salesforce-using-jenkins-and-
git-video-tutorial/

DX:
https://developer.salesforce.com/platform/dx

https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm

https://trailhead.salesforce.com/en/trails/sfdx_get_started
==============

Company : Coca Cola 20 Feb

How to set security in Lightning community?


>>
you can create external sharing rules for the object. Through sharing settings.

=============
Replacing JS buttons:

https://trailhead.salesforce.com/modules/lex_javascript_button_migration/units/javascript_button_al
ternatives

================
Adding Tab for compo:
In the components you wish to include in Lightning Experience, add
implements="force:appHostable" in the aura:component tag and save your changes.

1
<aura:component implements="force:appHostable">
Use the Developer Console to create Lightning components.

Follow these steps to include your components in Lightning Experience and make them available to
users in your organization.

Create a custom tab for this component.


From Setup, enter Tabs in the Quick Find box, then select Tabs.

================
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_bundle.htm

================
What Lightning locker services do?

https://developer.salesforce.com/blogs/developer-relations/2017/02/lockerservice-lightning-
container-third-party-libraries-lightning-components.html

What is XSS?
Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web
applications. XSS enables attackers to inject client-side scripts into web pages viewed by other
users. A cross-site scripting vulnerability may be used by attackers to bypass access controls such
as the same-origin policy. Cross-site scripting carried out on websites accounted for roughly 84% of
all security vulnerabilities documented by Symantec as of 2007.[1] Bug bounty company HackerOne
in 2017 reported that XSS is still a major threat vector.[2] XSS effects vary in range from petty
nuisance to significant security risk, depending on the sensitivity of the data handled by the
vulnerable site and the nature of any security mitigation implemented by the site's owner.

===============

Company : Paytm, 2 Feb

1. What is difference between render, renderer and renderas

2. What is difference between 15 and 18 digit ID.

3. What is difference between Standard controller and custom controller

4. What is difference between managed package and unmanaged package


5. How to refresh particular section of visualforce page

6. How can you implement pagination in visualforce.

7. What is difference between isnull and isblank

8. What is Batch apex?

9. What is difference between salesforce license and force.com license

10. How we can prevent to cross goverenor limit of SOQL query?

11. What is difference between data table and page block table in visualforce page

apex:pageBlockTable
1) uses salesforce styling
2) No need to specify the headers
3) mandatory attribute "value".
apex:dataTable
1) Need to specify the headers
2) we can specify custom style classes.
3) No mandatory attribute "value" unlike in pageblockTable

Company = Tesla, USA - 27 Jan 2018

VFP Order of execution

What is God’s mode?

Why to use Singleton architecture?

What is meaning of “Created By Automated Process” in Salesforce?

Company = Freddie Mac – 26 Jan 2018

https://success.salesforce.com/answers?id=9063A000000l2zZQAQ
https://success.salesforce.com/ideaView?id=08730000000l7lSAAQ

3 methods in batch:
Database.Batchable<sObject> {

https://salesforce.stackexchange.com/questions/17375/difference-between-remoteaction-annotation-
and-apexactionfunction

http://www.infallibletechie.com/2013/11/how-to-display-parent-child-and.html

1 query?
http://www.infallibletechie.com/2013/11/how-to-display-parent-child-and.html

When to use Trigger.New and Trigger.NewMap


DML operation is not allowed in the constructor of Apex class. Whenever we go for a DML operation
in constructor it resticts us in Salesforce.Only DDL is allowed. Use JavaScript to invoke an action
method on the controller, and have this action method carry out the DML operation.

How to do sharing by APEX:https://developer.salesforce.com/docs/atlas.en-


us.apexcode.meta/apexcode/apex_bulk_sharing_creating_with_apex.htm

All custom and standard objects inherit from the sobject superclass

http://www.differencebetween.com/difference-between-virtual-and-vs-abstract/

PageBlockTable Vs DataTable:

PageBlockTable:

 PageBlockTable should be define inside pageblock or pageblocksection.


 PageBlockTable uses standard styles sheets to design a visualpage.
 It has the required attribute "value".
 Column headers will be displayed automatically.
DataTable:

 No need to write inside pageblock or pageblocksection.


 There is no required value.
 The data can be displayed using custom style sheets.
 we need to specify column headers explicitly.

Company = ABsyz

Question they asked -


1> If object A and object B is in master detail relationship and Object A owd is Private what will owd
setting for B?

2> If object A is master of Object c and Object A OWD setting is Public Read, Object B is master of
Object C and Object B OWD setting is Public Read/Write What will be OWD setting of Object C? .
(means Object C is junction object

3> follow up with same if we delete object A, then what will happen to C?

4> follow up what be OWD setting for object C, then?

5> if we made Workflow where stage is closed,won then update Amount =100 and there is validation
rule is if amount is 100, throw error.
Now, I create record with stage prospect and amount is 50, then I updated stage equal to close,won,
What will happen?

Then he started tell me sequence of execution and I got confuse I change my ans to "throw error".

6> if we have object A and object B in lookup relationship and I want to see number of child , What
should I do?

7> on which object you will create trigger and which event you use?

Tech M -- 4 Jan
==================

How to call APEX? Various ways?

What are 3 advantages of batch class?


One example where u use Batch and not Trigrer?

How to test batch class?

Test class data committed?

Infosys -- 19 Dec
==================

REST vs SOAP

setting up live agent in salesforce website

Pre chats in live agent means what?

Enterprise vs Partner WSDL:


https://help.salesforce.com/articleView?id=000004760&language=en_US&type=1

Enterprise WSDL

Strongly typed, the object and its attributes are fixed.

Contains the metadata about all standard and custom fields and objects.

Can only be used against your Salesforce instance.

Partner WSDL

Is loosely typed, the object and its attributes can be variable.

Does not contain metadata about objects and fields. Takes an array of key-value pairs.

Can be used against many Salesforce.com organizations.

============
How many custom fields in salesforce we can have? > depends on Edition – 500/600
============
How to send info from a website which has Live agent.
How it will send info to SF?

>> Live agent API

=============
When to use AFTER trigger?

=============

Please accept my answer as a solution if my solution was helpful. This will make it available to
others as a proper answer. If you felt that I went above and beyond please give me Kudos by clicking
on on the star icon.

What is odata?
https://help.salesforce.com/articleView?id=odata_adapter_about.htm&type=5

What we can do in WFR which we cant do in Process builder ?


>> OBM

=================================================
CISCO – 19 Dec

How to use message class in VFP


======
How to create WSDL?
=======
Inbound integration process?
=======
Synchronous Vs Asynchronous call out ?

=============================================

SKL Softwares – 13 Dec


Deployment process
======
more than 100 call outs per transaction in SF
=======
Trigger.New Vs Trigger.Old
=======
Record Just updated.So what will be in Trigger.New?
======
there are three types of bindings used in Visualforce

1.Data binding 2.Action bindings 3.Component bindings


Data bindings refer to the data set in the controller.
Action bindings refer to action methods in the controller.
Component bindings refer to other Visualforce components

Hope it may help

======
database.insert(list true)

All insert or nothing

========
Why future method?

=========

Zensar – 10 Dec

Custom setting Vs Custom metadata


Design pattern in SF – explain any one.

===============================

===============================================================
==============================================================
==================Category Wise================================
===============================================================
================================================================

Production and Sandbox Environments


1. What is Cloud Computing ?
2. What is Salesforce?
3. What is Production?
4. What is production url?
5. What is sandbox?
6. What is sandbox url?
7. What are the types of Sandboxes?
8. What is Developer sandbox?
9. What is developer pro sandbox?
10. What is partial data sandbox?
11. What is Full copy sandbox?
Configuration
1. What is Track Field History?
2. What are the Activities in Salesforce?
3. How to Rename the tab?
4. How to display multiple columns after clicking on the tab?
5. What is the difference between ISBLANK() AND ISNULL()?
6. What is dependent picklist?
7. What is the architecture of the salesforce
8. What is the difference between 15 digit and 18 digit id in Salesforce?
9. What is Record Type?
10. What is the difference between detail page and edit page?
11. What is out of box functionality?
12. What are the type of tabs?
13. What is validation rule?
14. There are two fields, if the user populate two field values if we combine those values uniqueness should
be maintained, how to achieve this without coding?
15. What are Governor Limits?
16. For which data type we can enable external id?
17. What is list view?
18. What is Inline editing?
19. How to disable Inline editing?
20. What is Enhanced list view?
21. What is search layout?
22. What is mini page layout and how to enable?
23. What is lead process?
24. What is sales process?
25. What is Support process?
26. What is web-to-lead?
27. What is Queue?
28. What is public group?
29. What are the Assignment rules?
30. What are Auto-Response Rules?
31. What are the Escalation rules?
32. What is the Architecture of the Salesforce?
33. Relate TV, Remote and Setup Box with MVC?

Questions on Relationships
1. Is it possible to create the Master – Detail Relationship field for the child object which is having existing
records?
2. Is it possible to convert Mater – Detail Relationship to Look Up Relationship?
3. Is it possible to delete junction – Object in case of Mater – Detail Relationship?
4. What will happen if we undelete the deleted Junction Object?
5. What will happen to child records if we delete a parent record in case of Lookup Relationship?
6. What will happen to child records if we delete a parent record in case of Master Detail Relationship?
7. What is Junction Object?
8. For a junction object if we delete one of the parent record what will happen to child records?
Next Question to be added
Users, Profiles and Permission Sets
1. Is it possible to delete the user in salesforce?
2. What is 'Grant Account Login Access'? How to enable 'Grant Account Login Access'
3. How to provide security for Meta-Data files (Schema)?
4. What is Profile?
5. What is Permission Set?
6. How to give permissions to two fields for different users who belongs to different profiles?
7. How many users are there in your project salesforce instance?
8. How to provide security for the Records(Instance)?
9. What is role?
10. What is OWD?
11. What is Grant Access Using Hierarchies?
12. One of the Sales Rep is going on leave and want to assign the access to the opportunity to his collogue,
How can he provide the access to the opportunity record?
Import Wizard and Data Loader
1. What is Import wizard?
2. What is Data Loader?
3. Which operations we can perform on dataloader?
4. Data loader or Import wizard supports which file format?
5. What is the filed mapping file format of the data loader?
6. How to insert null values into dataloader?
7. What is external ID?
8. Maximum batch size of data loader?
9. What is default batch size if we enable bulk API?
Workflows and Approvals
1. What are the different kinds of evaluation criteria’s (events)?
2. What is the difference between Created and everytime edited to meet the criteria and Created and edited
to subsequently meet the criteria?
3. What are the types of rule criteria’s?
4. What is immediate workflow action?
5. What is time dependent workflow action?
6. For which event we can't create time dependent workflow action?
7. What are the different kinds of workflow actions?
8. What are the types of email templates?
9. There is a timebased workflow which will update one of the fields if the criteria meet. User submits the
record with valid criteria, workflow triggered so that the field update is queued in the 'time based flow' queue
which will fire after one day. If the user modifies the record which is submitted before the scheduled date,
after modification, a record criterion is not meeting. Whether the field will be updated or not in schedule
date?
10. For the same scenario explained in the above question what happens when we deactivate or modify the
criteria of the workflow to different criteria? Whether the field will be updated or not in schedule date?
11. Scenario: There are two workflow rules on the same object say namely wf1 and wf2. If wf1 fires then a
field will be updated on the same object, if the field updated and due to this wf2 criteria meets then what will
happen, wf2 will fire or not?
12. What is recursive workflow rule? How to avoid recursive workflow rules?
13. What is Approval Process?
14. How to configure Approval Process?
15. Scenario: After activating the approval process, I want to add one more step. Is it possible?
Reports and Dashboards
1. What is Report?
2. What are the types of Reports?
3. How many blocks we can create for join reports?
4. How many maximum groupings we can do for summary, matrix and join reports?
5. What is bucketing in reports?
6. How many records we can display on page for a report?

=========================================================
=========================================================
=================== With Answers ========================
=========================================================
=========================================================

1) Explain what is sales force?

Salesforce is a CRM delivered as a software-as-a-service (SaaS).

2) Explain what is a custom object in sales force?

Custom objects are nothing but database tables. It stores data related to your company in Salesforce.com.
Once you have defined custom object you can do following things like

Create custom fields


Associate the custom object with other records
In custom related lists, it display the custom object data
For custom object, records track events and tasks
Build page layouts
For the custom object create a custom tab
To analyze custom object data create dashboards and reports
Share your custom tabs, custom apps, custom objects and any other related components
3) Explain what is object relationship overview?

Object relationship overview in Salesforce is used to link custom object records to standard object records in
a related list. In simple words, it is helpful to track product defects associated with customer cases. You can
define different types of relationship by creating custom relationship fields on an object.

4) Mention changing what may cause data loss?

Data loss may cause due to following reasons

Changing data and date-time


Altering to percent,number and currency from other data types
Changing from multi-select picklist, checkbox, auto number to other types
Altering to multi-select picklist from any type except picklist
Changing to auto-number except from text
Changing from text-area to e-mail, phone, URL and text
5) How SaaS can be helpful to Sales force?

As SaaS is a subscription based, customers can always choose not to renew if they are dissatisfied
Customers can avoid a large initial investment in an IT infrastructure and day to day hustle of maintaining
infrastructure
SaaS customer provides same provider infrastructure and also easy integration
SaaS applications use a simple internet interface that makes easier for customer to use.
SaaS always provide a latest platform to the customer with innovation.
salesforce-logo-635-401x349

6) How sales force is useful in tracking sales?

Sales force records all the basic details like the number of customers served daily, daily sales volume, sales
manager detailed reports, sales numbers in each month or quarter. Also, it keeps a track on the repeat
customer, which is key to success for any sales organization.

7) Mention how many relationship is included in SFDC and what are they?

There are two types of relationships

Master detail relationship


Lookup relationship
8) Mention what is the difference between isNull and isBlank?

isNull: It supports for number field


isBlank: It supports for Text field
9) Explain what is the trigger?

Trigger is a code that is executed before or after the record is updated or inserted

10) Mention what is the use of the static resource in Salesforce?

With the help of static resources, you can upload zip files, images, jar files, JavaScript and CSS files that
can be referred in a visual force page. The optimum size of static resources for an organization is 250 mB.

11) Mention what is the difference between force.com and Salesforce.com?

Force.com is PaaS (Platform as a Service) while Salesforce.com is SaaS ( Software as a Service).

12) Mention what are the actions available in workflow?

Actions available in workflow are

Email Alert
Task
Field Update
Outbound Message
13) Explain what is the limit of data.com records that can be added to Salesforce?

User can see their limit form setup, by clicking data.com administration/Users. From the data.com users
section, user can see their monthly limit and how many records are exported during the month.
14) Mention what are the different types of custom settings in Salesforce?

Different types of custom settings in Salesforce includes

Hierarchy type
List type
15) Mention what are the three types of object relations in Salesforce?

Different types of object relations in Salesforce includes

One to many
Many to many
Master detail
16) Mention what are the different types of reports available in Salesforce?

Different types of reports available in Salesforce are

Tabular report: It displays the grand total in the table form


Matrix report: It is a detailed report in which the grouping is done based on both rows and columns
Summary report: It is a detailed form of the report in which the grouping is done based on columns
Joined report: With this two or more reports can be joined in the single reports
17) Is it possible to schedule a dynamic dashboard in Salesforce?

No, it is not possible to schedule a dynamic dashboard in Salesforce.

18) What does it indicate if an error state this “list has no rows for assignment”?

The error that tells “list has no rows for assignment” indicates that the list you are trying to access has no
values in it.

19) Explain what the junction object is and what is the use?

Junction objects are used to build many-to-many relationships between objects. You can take a recruiting
application example, where a position for a job can be linked to many candidates and in the same manner a
candidate can be linked to the different positions. So, to connect this data model, you need a third party
object, this object is referred as junction object. Here “job application” is the junction object.

20) Explain what is Audit trail?

Audit trail function is helpful in knowing the information or track all the recent setup changes that the
administration does to the organization. It can store last 6 months data.

21) Explain what is dashboard?

Dashboard is the pictorial representation of the report, and we can add up to 20 reports in a single
dashboard.

22) Explain how many controllers can be used in a visual force page?
As Salesforce comes under SaaS, one can use only one controller and as many extension controller.

23) Mention what is the difference between SOQL and SOSL?

SOQL ( Salesforce Object Query Language) SOSL (Salesforce Object Search Language)
Only one object at a time can be searched
Query all type of fields
It can be used in triggers and classes
DML operation can be performed on query results
Many objects can be searched at a time
Query only e-mail, phone and text
It can be used in classes but not in triggers
DML operation cannot be performed on search result

=========================================================
=========================================================
=================== Another set ========================
=========================================================
=========================================================

1. Can two users have the same profile? Can two profiles be assigned to the same user?
Profiles determine the level of access a user can have in a Salesforce org.

As far as the first part of the question is concerned, Yes. One profile can be assigned to any number of
users. Take the example of a Sales or Service team in a company. The entire team will be assigned the
same profile. The admin can create one profile: Sales Profile, which will have access to the Leads,
Opportunities, Campaigns, Contacts and other objects deemed necessary by the company.

In this way, many users can be assigned the same profile. In case the team lead or manager need access to
additional records/ objects then it can be done by assigning permission sets only for those users.

Answering the second part of the question, each user can only be assigned 1 profile.

2. What are Governor Limits in Salesforce?


In Salesforce, it is the Governor Limits which controls how much data or how many records you can store in
the shared databases. Why? Because Salesforce is based on the concept of multi-tenant architecture. In
simpler words, Salesforce uses a single database to store the data of multiple clients/ customers. The below
image will help you relate to this concept.

multi tenant architecture - salesforce interview questions


To make sure no single client monopolizes the shared resources, Salesforce introduced the concept of
Governor Limits which is strictly enforced by the Apex run-time engine.

Governor Limits are a Salesforce developer’s biggest challenge. That is because if the Apex code ever
exceeds the limit, the expected governor issues a run-time exception that cannot be handled. Hence as a
Salesforce developer, you have to be very careful while developing your application.

Different Governor Limits in Salesforce are:


Per-Transaction Apex Limits
Force.com Platform Apex Limits
Static Apex Limits
Size-Specific Apex Limits
Miscellaneous Apex Limits
Email Limits
Push Notification Limits
3. What is a sandbox org? What are the different types of sandboxes in Salesforce?
A sandbox is a copy of the production environment/ org, used for testing and development purposes. It’s
useful because it allows development on Apex programming without disturbing the production environment.

When can you use it?


You can use it when you want to test a newly developed Force.com application or Visualforce page. You can
develop and test it in the Sandbox org instead of doing it directly in production.

This way, you can develop the application without any hassle and then migrate the metadata and data (if
applicable) to the production environment. Doing this in a non-production environment allows developers to
freely test and experiment applications end to end.

Types of Sandboxes are:

Developer
Developer Pro
Partial Copy
Full
4. Can you edit an apex trigger/ apex class in production environment? Can you edit a Visualforce page in
production environment?
No, it is not possible to edit apex classes and triggers directly in production environment.

It needs to be done first in Developer edition or testing org or in Sandbox org. Then, to deploy it in
production, a user with Author Apex permission must deploy the triggers and classes using deployment
tools.

However, Visualforce pages can be created and edited in both sandbox and in production.

Only if the page has to do something unique (different values), it would have to be developed via Sandbox.

5. What are the different data types that a standard field record name can have?
A standard field record name can have data type of either auto number or text field with a limit of 80 chars.

For generating auto numbers, the format needs to be specified while defining the field and after that for
every record that is added, the number will get auto generated. For example:-
Sr No-{1}
Sr No-{2}
Sr No-{3}

6. Why are Visualforce pages served from a different domain?


Visualforce pages are served from a different domain to improve security standards and block cross site
scripting. Take a look at the highlighted portion in the below Visualforce page:-
sample visualforce page - salesforce interview questions

B. Declarative Features – Salesforce Interview Questions

7. What is WhoId and WhatId in activities?


WhoID refers to people. Typically: contacts or leads. Example: LeadID, ContactID

WhatID refers to objects. Example: AccountID, OpportunityID

8. What is the use of writing sharing rules? Can you use sharing rules to restrict data access?
Sharing rules are written to give edit access (public read and write) or public read only access to certain
individuals in Salesforce org. A classic example is when:- only your managers or superiors need to be given
extra credentials to your records in objects as compared to your peers.

By default, all users in your organization will have organization-wide-default sharing settings of either Public
Read Only or Private.
To give access to more records, which users do not own, we write sharing rules.
Example: Sharing rules are used to extend sharing access to users in public groups or roles. Hence, sharing
rules are not as strict as organization-wide default settings. They allow greater access for those users.

As far as the second part of the question is concerned, the answer is no. We cannot use sharing rules to
restrict data access. It is only used for allowing greater access to records.

9. What are the different types of email templates that can be created in Salesforce?
The different types of Email templates are listed in the below table:-

Text All users can create or change this template


HTML with letterhead Only Administrators and users having “Edit HTML Templates” permissions can create
this template based on a letterhead.
Custom HTML Administrators and users having “Edit HTML Templates” permissions can create this
template without the need of a letterhead
Visualforce Only administrators and developers can create this template. Advanced functionalities like
merging data from multiple records is available only in this template
C. Audit & Reporting Features – Salesforce Interview Questions

10. What is a bucket field in reports?


A bucket field lets you group related records together by ranges and segments, without the use of complex
formulas and custom fields. Bucketing can thus be used to group, filter, or arrange report data. When you
create a bucket field, you need to define multiple categories (buckets) that are used to group report values.

The advantage is that earlier, we had to create custom fields to group or segment certain data.

11. What are dynamic dashboards? Can dynamic dashboards be scheduled?


Before we understand dynamic dashboards, let us first understand static dashboards. Static dashboards are
the basic dashboard types that will be visible to any user who has made a report out of his data. An example
of this is what a Sales manager/ Marketing manager would be able to see on his Salesforce org. In other
words, a normal dashboard shows data only from a single user’s perspective. Now comes the concept of
dynamic dashboards.
Dynamic dashboards are used to display information which is tailored to a specific user. Let us consider the
same example as above. In case the Sales manager wants to view the report generated specific to only one
of his team members, then he can use dynamic dashboards.

You can use dynamic dashboards when you want to show user-specific data of a particular user, such as
their personal quotas and sales, or number of case closures, or leads converted etc.
You can also use a normal/ static dashboard when you want to show regional or organization-wide data to a
set of users, such as a particular region’s sales number, or a particular support team’s performance on case
closures.

As far as the second part of the question is concerned, no we cannot schedule a dynamic dashboard. That
is because whenever we open the dashboard, it will show the data generated in real-time.

12. What are the different types of reports available in Salesforce? Can we mass delete reports in
Salesforce?
1. Tabular reports Simple Excel type tables which provide a list of items with the grand total
2. Summary reports Similar to Tabular reports, but also have functionality of grouping rows, viewing
subtotals & creating charts
3. Matrix reports Two-dimensional reports which allow you to group records both by row and column
4. Joined reports Multiple blocks showing data from different reports based on same or different report
types
Another important point to note here is that, only Summary reports and Matrix reports can be fed as data
source for dashboards. Tabular and Joined reports cannot be used as data source for dashboards.

Can we mass delete reports in Salesforce? Of Course we can mass delete reports in Salesforce. The option
to mass delete reports can be found under Data Management in Setup.

D. Data Modelling & Data Management – Salesforce Interview Questions

13. What are the different types of object relations in salesforce? How can you create them?
No list of Salesforce interview questions is complete without involving relationships between objects in
Salesforce. Relationships in Salesforce can be used to establish links between two or more objects.

The different types of object relationships in Salesforce are:

Master-Detail Relationship (1:n):-


It is a parent-child relationship in which the master object controls the behavior of the dependent child object.
It is a 1:n relationship, in which there can be only one parent, but many children.

The main concept you need to be know is that, being the controlling object, the master field cannot be
empty. If a record/ field in master object is deleted, the corresponding fields in the dependent object are also
deleted. This is called a cascade delete. Dependent fields will inherit the owner, sharing and security
settings from its master.

You can define master-detail relationships between two custom objects, or between a custom object and
standard object as long as the standard object is the master in the relationship.

Lookup Relationship (1:n):-


Lookup relationships are used when you want to create a link between two objects, but without the
dependency on the parent object. Similar to Master-Detail relationship, you can think of this as a form of
parent-child relationship where there is only one parent, but many children i.e. 1:n relationship.

The difference here is that despite being controlling field, deleting a record will not result in automatic
deletion of the lookup field in the child object. Thus the records in the child object will not be affected and
there is no cascade delete here. Neither will the child fields inherit the owner, sharing or security settings of
its parent.

Junction Relationship (Many-To-Many):-


This kind of a relationship can exist when there is a need to create two master-detail relationships. Two
master-detail relationships can be created by linking 3 custom objects. Here, two objects will be master
objects and the third object will be dependent on both the objects. In simpler words, it will be a child object
for both the master objects.

14. What happens to detail record when a master record is deleted? What happens to child record when a
parent record is deleted?
In a Master-Detail relationship, when a master record is deleted, the detail record is deleted automatically
(Cascade delete).

In a Lookup relationship, even if the parent record is deleted, the child record will not be deleted.

15. Can you have a roll up summary field in case of Master-Detail relationship?
Yes. You can have a roll-up summary in case of a master-detail relationship. But not in case of a lookup
relationship.

A roll-up summary field is used to display a value in a master record based on the values of a set of fields in
a detail record. The detail record must be related to the master through a master-detail relationship.

There are 4 calculations that you can do using roll-up summary field. You can count the number of detail
records related to a master record. Or, you can calculate the sum, minimum value, or maximum value of a
field in the detail records.

16. Explain the term “Data Skew” in Salesforce.


“Data skew” is a condition which you will encounter when working for a big client where there are over
10,000 records. When one single user owns that many records we call that condition ‘ownership data skew’.

When such users perform updates, performance issues will be encountered because of “data skew”. This
happens when a single user/ members of a single role own most of the records for a particular object.

17. Explain skinny table. What are the considerations for Skinny Table?
In Salesforce, skinny tables are used to access frequently used fields and to avoid joins. This largely
improves performance. Skinny tables are highly effective, so much so that even when the source tables are
modified, skinny tables will be in sync with source tables.

Considerations for skinny tables:

Skinny tables can contain a maximum of 100 columns.


Skinny tables cannot contain fields from other objects.
For full sandboxes: Skinny tables are copied to your Full sandbox organizations, as of the Summer ’15
release.
18. Which fields are automatically Indexed in Salesforce?
Only the following fields are automatically indexed in Salesforce:

Primary keys (Id, Name and Owner fields).


Foreign keys (lookup or master-detail relationship fields).
Audit dates (such as SystemModStamp).
Custom fields marked as an External ID or a unique field.
19. How to handle comma within a field while uploading using Data Loader?
In a Data Loader .CSV, if there is a comma in field content, you will have to enclose the contents within
double quotation marks: ” “.

E. Logic & Process Automation – Salesforce Interview Questions

20. For which criteria in workflow “time dependent workflow action” cannot be created?
Time dependent workflow action cannot be create for: “created, and every time it’s edited”.

21. What are the types of custom settings in Salesforce? What is the advantage of using custom settings?
There are two types of custom settings in Salesforce: List Custom Settings and Hierarchy Custom Settings.

List Custom Settings are a type of custom settings that provides a reusable set of static data that can be
accessed across your organization irrespective of user/ profile.
Hierarchy Custom Settings are another type of custom settings that uses built-in hierarchical logic for
“personalizing” settings for specific profiles or users.

The advantage of using custom settings is that it allows developers to create a custom set of access rules
for various users and profiles.

22. How many active assignment rules can you have in a lead/ case?
Only one rule can be active at a time.

23. What are custom labels in Salesforce? What is the character limit of custom label?
Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. The
values here can be translated into any language supported by Salesforce.
Their benefit is that they enable developers to create multilingual applications which automatically presents
information in a user’s native language.

You can create up to 5,000 custom labels for your organization, and they can be up to 1,000 characters in
length.

24. What is the difference between a Role and Profile in Salesforce?


As mentioned in one of the previous Salesforce interview questions, a profile will ultimately control access to
which records a user has in a Salesforce org. No user can work on the Salesforce org without being
assigned a profile. The Profile is therefore mandatory for every user.

Role however is not mandatory for every user. The primary function of the Role/ Role hierarchy is that it
allows higher level users in hierarchy get access to records owned by lower level users in the hierarchy. An
example of that is Sales Managers getting access to records owned by Sales Reps while their peers do not
get access to it.
25. What are the examples of non-deterministic Force.com formula fields?
Before I mention some of the examples, let me give you an introduction to deterministic and non-
deterministic formula fields. Formula fields whose value will be static are referred to as deterministic fields.
Whereas, formula fields whose value will be changed dynamically or whose values will have to be calculated
on the fly, they are referred to as non-deterministic formula fields. A classic example of that is a formula
returning the current date and time.

Some examples of non-deterministic fields in Force.com are:

Lookup fields
Formula fields whose reference spans over other entities
Fields having dynamic date functions like:- TODAY() or NOW()
F. Software Testing – Salesforce Interview Questions

26. Why do we need to write test classes? How to identify if a class is a test class?
Software developers from around the world will unanimously agree that writing code in test classes makes
debugging more efficient. Why? That is because test classes help in creating robust and error-free code be it
Apex or any other programming language. Since Unit tests are powerful in their own right, Salesforce
requires you to write test classes in Apex code.

Why are they so powerful? Because test classes and test methods verify whether a particular piece of code
is working properly or not. If that piece of code fails, then developers/ testers can accurately locate the test
class having the faulty bug.

Test classes can be determined easily because every test class will be annotated with @isTest keyword. In
fact, if we do not annotate a test class with @isTest, then it cannot be defined as a test class. Similarly, any
method within a class which has the keyword testMethod, is a test method.

27. What is minimum test coverage required for trigger to deploy?


In Salesforce, if you want to deploy your code to production, then you must make sure that at least 75% of
your Apex code is covered by unit tests. And all these tests must complete successfully.

G. Debug & Deployment Tools – Salesforce Interview Questions

28. What are the different ways of deployment in Salesforce?


You can deploy code in Salesforce using:

Change Sets
Eclipse with Force.com IDE
Force.com Migration Tool – ANT/Java based
Salesforce Package
H. Integration – Salesforce Interview Questions

29. What is an external ID in Salesforce? Which all field data types can be used as external IDs?
An external ID is a custom field which can be used as a unique identifier in a record. External IDs are mainly
used while importing records/ data. When importing records, one among the many fields in those records
need to be marked as an external ID (unique identifier).
An important point to note is that only custom fields can be used as External IDs. The fields that can be
marked as external IDs are: Text, Number, E-Mail and Auto-Number.

30. How many callouts to external service can be made in a single Apex transaction?
Governor limits will restrict a single Apex transaction to make a maximum of 100 callouts to an HTTP
request or an API call.

31. How can you expose an Apex class as a REST WebService in Salesforce?
You can expose your Apex class and methods so that external applications can access your code and your
application through the REST architecture. This is done by defining your Apex class with the
@RestResource annotation to expose it as a REST resource. You can then use global classes and a
WebService callback method.

Invoking a custom Apex REST Web service method always uses system context. Consequently, the current
user’s credentials are not used, and any user who has access to these methods can use their full power,
regardless of permissions, field-level security, or sharing rules.

Developers who expose methods using the Apex REST annotations should therefore take care that they are
not inadvertently exposing any sensitive data. Look at the below piece of code for instance:-

global class AccountPlan {


webservice String area;
webservice String region;
//Define an object in apex that is exposed in apex web service
global class Plan {
webservice String name;
webservice Integer planNumber;
webservice Date planningPeriod;
webservice Id planId;
}
webservice static Plan createAccountPlan(Plan vPlan) {
//A plan maps to the Account object in salesforce.com.
//So need to map the Plan class object to Account standard object
Account acct = new Account();
acct.Name = vPlan.name;
acct.AccountNumber = String.valueOf(vPlan.planNumber);
insert acct;
vPlan.planId=acct.Id;
return vPlan;
}}
I. Programmatic Features – Salesforce Interview Questions

32. What is the difference between a standard controller and a custom controller?
Standard controller in Apex, inherits all the standard object properties and standard button functionality
directly. It contains the same functionality and logic that are used for standard Salesforce pages.

Custom controller is an Apex class that implements all of the logic for a page without leveraging a standard
controller. Custom Controllers are associated with Visualforce pages through the controller attribute.
33. How can we implement pagination in Visualforce?
To control the number of records displayed on each page, we use pagination. By default, a list controller
returns 20 records on the page. To customize it, we can use a controller extension to set the pageSize. Take
a look at the sample code below:-

<apex:page standardController="Account" recordSetvar="accounts">


<apex:pageBlock title="Viewing Accounts">
<apex:form id="theForm">
<apex:pageBlockSection >
<apex:dataList var="a" value="{!accounts}" type="1">
{!a.name}
</apex:dataList>
</apex:pageBlockSection>
<apex:panelGrid columns="2">
<apex:commandLink action="{!previous}">Previous</apex:commandlink>
<apex:commandLink action="{!next}">Next</apex:commandlink>
</apex:panelGrid>
</apex:form>
</apex:pageBlock>
</apex:page>
34. How can you call a controller method from JavaScript?
To call a controller method (Apex function) from JavaScript, you need to use actionfunction.

Look at the below piece of code to understand how a controller method is called using actionfunction.

<apex: page>
<apex:form id ="frm">
<apex:actionfunction name="callfromJS" action="{!controllerMethodName} reRender="frm"/>

</apex:form>
<script>
function JSmethodCallFromAnyAction()
{
callfromJS();
}
</apex:page>
35. How to get the UserID of all the currently logged in users using Apex code?
You can get the ID’s of all the currently logged in users by using this global function: UserInfo.getUserId().

36. How many records can a select query return? How many records can a SOSL query return?
The Governor Limits enforces the following:-

Maximum number of records that can be retrieved by SOQL command: 50,000.

Maximum number of records that can be retrieved by SOSL command: 2,000.

37. What is an attribute tag? What is the syntax for including them?
An attribute tag is a definition of an attribute of a custom component and it can only be a child of a
component tag.

Note that you cannot define attributes with names like id or rendered. These attributes are automatically
created for all custom component definitions. The below piece of code shows the syntax for including them:

<apex:component>
<apex:attribute name="myValue" description="This is the value for the component." type="String"
required="true"/>
<apex:attribute name="borderColor" description="This is color for the border." type="String"
required="true"/>

<h1 style="border:{!borderColor}">
<apex:outputText value="{!myValue}"/>
</h1>

</apex:component>
38. What are the three types of bindings used in Visualforce? What does each refer to?
There are three types of bindings used in Salesforce:-

Data bindings, which refer to the data set in the controller


Action bindings, which refer to action methods in the controller
Component bindings, which refer to other Visualforce components.
Data bindings and Action bindings are the most common and they will be used in every Visualforce page.

39. What are the different types of collections in Apex? What are maps in Apex?
Collections are the type of variables which can be used to store multiple number of records (data).

It is useful because Governor Limits restrict the number of records you can retrieve per transaction. Hence,
collections can be used to store multiple records in a single variable defined as type collection and by
retrieving data in the form of collections, Governor Limits will be in check. Collections are similar to how
arrays work.

There are 3 collection types in Salesforce:

Lists
Maps
Sets
Maps are used to store data in the form of key-value pairs, where each unique key maps to a single value.
Syntax: Map<String, String> country_city = new Map<String, String>();

40. How can you embed a Visualflow in a Visualforce page?


Find the flow’s unique name.
From Setup, enter Flows in the Quick Find box, then select Flows.
Click the name of the flow.
Copy the unique name of the flow.
From Setup, enter Visualforce Pages in the Quick Find box, then select Visualforce Pages.
Define a new Visualforce page, or open an existing one.
Add the <flow:interview> component somewhere between the <apex:page> tags.
Set the name attribute to the unique name of the flow.
For example:

</apex:page>
<flow:interview name="flowuniquename"/>
<apex:page>
Click Save.
Restrict which users can access the Visualforce page.
Click Visualforce Pages.
Click Security next to your Visualforce page.
Move all the appropriate profiles from Available Profiles to Enabled Profiles by using the ‘add’ and ‘remove’
buttons.
Click Save.
Add the Visualforce page to your Force.com app by using a custom button, link, or Visualforce tab.
41. What is the use of “@future” annotation?
Future annotations are used to identify and execute methods asynchronously. If the method is annotated
with “@future”, then it will be executed only when Salesforce has the available resources.

For example, you can use it while making an asynchronous web service callout to an external service.
Whereas without using the annotation, the web service callout is made from the same thread that is
executing the Apex code, and no additional processing will occur until that callout is complete (synchronous
processing).

42. What are the different methods of batch Apex class?


Database.Batchable interface contains three methods that must be implemented:

Start method:
global (Database.QueryLocator | Iterable<sObject>) start(Database.BatchableContext bc) {}

Execute method:
global void execute(Database.BatchableContext BC, list<P>){}

Finish method:
global void finish(Database.BatchableContext BC){}

43. What is a Visualforce component?


A Visualforce Component is either a predefined component (standard from component library) or a custom
component that determines the user interface behavior. For example, if you want to send the text captured
from the Visualforce page to an object in Salesforce, then you need to make use of Visualforce components.
Example: <apex:detail>

44. What is Trigger.new?


Triger.new is a command which returns the list of records that have been added recently to the sObjects. To
be more precise, those records will be returned which are yet to be saved to the database. Note that this
sObject list is only available in insert and update triggers, and the records can only be modified in before
triggers.

But just for your information, Trigger.old returns a list of the old versions of the sObject records. Note that
this sObject list is only available in update and delete triggers.
45. What all data types can a set store?
Sets can have any of the following data types:

Primitive types
Collections
sObjects
User-defined types
Built-in Apex types
46. What is an sObject type?
An sObject is any object that can be stored in the Force.com platform database. Apex allows the use of
generic sObject abstract type to represent any object.

For example, Vehicle is a generic type and Car, Motor Bike all are concrete types of Vehicle.
In SFDC, sObject is generic and Account, Opportunity, CustomObject__c are its concrete type.

47. What is the difference between SOQL and SOSL?


The differences are mentioned in the table below:

SOQL (Salesforce Object Query Language) SOSL (Salesforce Object Search Language)
Only one object can be searched at a time Many objects can be searched at a time
Can query any type of field Can query only on email, text or phone
Can be used in classes and triggers Can be used in classes, but not triggers
DML Operation can be performed on query results DML Operation cannot be performed on search
results
Returns records Returns fields
48. What is an Apex transaction?
An Apex transaction represents a set of operations that are executed as a single unit. The operations here
include the DML operations which are responsible for querying records. All the DML operations in a
transaction either complete successfully, or if an error occurs even in saving a single record, then the entire
transaction is rolled back.

49. What is the difference between public and global class in Apex?
Global class is accessible across the Salesforce instance irrespective of namespaces.
Whereas, public classes are accessible only in the corresponding namespaces.

50. What are getter methods and setter methods?


Get (getter) method is used to pass values from the controller to the VF page.
Whereas, the set (setter) method is used to set the value back to controller variable.

=========================================================================
=========================================================================
=================== Without Answers =====================================
=========================================================================
=========================================================================

Name three Governor Limits.


When do you use a before vs. after trigger?
What’s the maximum batch size in a single trigger execution?
What are the differences between 15 and 18 digit record IDs?
Provide an example of when a Custom Setting would be used during development.
When should you build solutions declaratively instead of with code?
Give an example of a standard object that’s also junction object.
Describe a use case when you’d control permissions through each of the following:
– Profiles
– Roles
– Permission Sets
– Sharing Rules
When should an org consider using Record Types?
What are some use cases for using the Schema class?
A trigger is running multiple times during a single save event in an org. How can this be prevented?
Why is it necessary for most sales teams to use both Leads and Contacts?
What is the System.assert method and when is it commonly used?
What are the differences between SOQL and SOSL?
Order the following events after a record is saved:
– Validation rules are run
– Workflows are executed
– “Before” triggers are executed
– “After” triggers are executed
What is Trigger.old and when do you normally use it?
When should you use a lookup instead of a master-detail relationship?
What are the advantages of using Batch Apex instead of a trigger?
What are the pros and cons when using a Workflow Rule Field Update vs. a Formula Field?
What are the differences between a Map and a List?
What are the advantages of using Batch Apex instead of a trigger?
Describe a use case for Static Resources.
Provide an example of when a Matrix report would be used. How about a Joined report?
A group of users must be prevented from updating a custom field. What’s the most secure method of
preventing this?
When would you use the @future annotation?
List three different tools that can be used when deploying code.
When should an Extension be used instead of a Custom Controller?
What are the advantages of using External Id fields?
What are the uses of the <apex:actionFunction> tag?
What are the differences between static and non-static variables in Apex?
What are some best practices when writing test classes?
What does the View State represent in a Visualforce page?
What are three new features in the most recent Salesforce release?
Describe the benefits of the “One Trigger per Object” design pattern.
Write a SOQL query that counts the number of active Contacts for each Account in a set.
Declaratively create logic in your org that prevents two Opportunities from being created on a single Account
in a single day.
Declaratively create logic in your org that prevents closed Opportunities from being updated by a non
System Administrator profile.

=================== Latest and favourite of interviewers =====


1. What is the User?

2. What is the Role?

3. What is the OWD?

4. What is the Permission Set?

5. Difference between Role and Profile?

6. What is the Profile?

7. What is the Sales Process?

8. Difference between workflow and Processbuilder?

9. How to call flow and Apex class from process builder?

10. How many editions in salesforce?

11.How many types of Deployment ways from salesforce.

12.What is the sharing setting?

13. What is the Trigger?

15. What is the before and after trigger?

16.What is the context variable?

17. Difference between Trigger.newMap and Trigger.OldMap?

18. How to update Contact corresponding to the account?

19. How to update Account field to contact field?

20. How to insert child when the parent is inserted/update?

21.What is the aggregate Query?

22. How to show the count of contact corresponding to account?

23.What is the SOQL/SOSL?

24. Limitation of SOQL/SOSL/DML?

25.What is the governor limit?

26. Why Salesforce make governor limit?


27. What is the Order of execution?

28. How to stop recursiveness in the trigger?

29. Best Pratic of Trigger? Any Five?

30. How many triggers we can make on one object but if you're making what is the best practice?

31. What is the Custom Label? Syntex of Custom label?

32. What is the Custom Setting? How to define Custom setting in class and trigger?

33. What is the difference between Custom Setting and Custom Objects?

34. What is the Purpose of making Custom Setting? Acutely Salesforce has already provided Custom
Objects....WHY?

35. What are the get and set method and how they are works?

36. What is Trigger Handler?

37. What is Bulkifying Trigger?

38. Can we define two triggers with the same event on a single object?

39. Why we have to write Trigger Handler?

40. Could we update the same object using after event?

41. What is the Batch Class and Purpose?

42. What is the Syntex of Batch class?

43. Methods of the Batch class and Syntex?

44. What is the Database.ContextVariable and What the work of?

45.What is the QueryLocator in Batch class?

46. Could you please explain to me how to Batch class work step by step?

47. What is the Default, Min, Max Size of Batch?

48. How Many time execute method called?

49. How many time Start method called?

50. What is the connection of Start and execute method?

51. How to send the Email message through Batch class?


52. What is the purpose of Finish Method?

53. Finish Method is mandatory to write in batch class?

54. Can we call another Batch class from another batch class? How?

55. Can we call batch class from trigger? How?

56. How to run Batch class immediately? How?

57. What is the Test.StartTest() and Test.StartStop()?

58. What is the Schedule Class?

59. Why we have write Schedule Class?

60. How many ways we can schedule batch class?

61. What is the Scheduleable interface? Why we have write?

62. How many batch we can schedule ata time?

63. Suppose You have scheduled a batch and you want to do some change in your batch class. Could you
save your Batch class after change?

64. What is the synchronous and Asynchronous?

65. Batch class is synchronous process or Asynchronous Process?

66. What is Future Method?

67. What is the Queueable Class?

68. What is the Purpose of Future Method and Queueable class?

68. Difference between Future Method and Queueable class?

69. Syntex of Future Method and Queueable class?

70. Can we call Future method from the batch class?


=============================================================
=============================================================
================ Company Wise ================================
=============================================================
=============================================================

Accenture Interview Questions

1) What is Dynamic Approval process?


2) The flow of execution in the validation rule, triggers & workflows?

3) Assignment process & validations.

4) Difference between Trigger.new & Trigger.old?

5) Trigger events? & context variables?

6) Batch Apex?

7) Will one workflow effects another workflow?

8) Syntax for upsert & undelete trigger & Purpose undelete?

9) Case management?

10) If we want to upload data through DataLoader, what the changes to be done?

11. write a trigger on Account, While inserting a text value as ‘someName’ ended with ‘text’ ex: ‘renuText’ On
Account Object it should through an error. How you will achieve this…??
12. How you will write Validation rule for above scenario while inserting the record and Validation rule should
not fire while updating form workflow it should accept.
13. In one of the object, there are two fields called Field1 and Filed2 exist and we have 100,000 records, out
of 70,000 record values are equal in field1 and field2. Now Display those 70,000 records on the visualforce
page.
14. In an Account Object a field called ‘Sales Person‘ and it has lookup relation with the user object. If the
user is selected as the salesperson for a record, that user able to see those records, but OWD is private,
record owner and admin will not share any records.

15. Soap & REST Difference and in which format these are used to send and receive.
16. How to get the external ID from other system and update it in Salesforce ExternalID field, if you get null
value from another system how you will through an error.
18. Why we use @future annotation?
19. What is an asynchronous process and why it is needed?
20. What is the purpose of using with sharing and without sharing?

Deloitte F2F Interview Question

1 – We have 3 objects Account, Contact, Opportunity. In a VF page, we need to display the names of
contact & Opportunity which are related to Account.

2 – One object (s1) & 3 tasks (t1, t2, t3) are there. Each task performing discount related stuff. Write a
trigger that should calculate the sum of 3 tasks. And if any task is modified than trigger should fire
automatically & perform the same.

Ans: List listoftasks = [select id, name from Task where whatId=Trigger.new];

3 – How can you convert a lead?


4 – What is your Role in your project?
5 – Explain 2 VF pages developed by you?
6 – How will you deploy? Have you ever involved in deployment?
7 – How will you test your code through Sandbox?
8 – What are the custom settings? Types?
9 – Difference between SOSL and SOQL in Salesforce?
10 – What is Sales cloud & Service cloud?
11 – can a Checkbox as controlling field?
12 – SOQL & SOSL? Diff between SOQL & SOSL?
13 – Difference b/w External ID & Unique ID?
https://help.salesforce.com/articleView?id=000005395&type=1

14 – What is System.RunAs () is test class?


15 – Explain Test.setPage ()?
16 – Why Governor Limits are introduced in Salesforce.com?

TCS F2F interview

1 – About project?
2 – What are standard objects used in your project?
3 – Governor Limits?
4 – How many types of relationship in Salesforce.
5 – Have you experience Data Migration?
6 – What is the Roll-up summary field?
7 – What is the difference between sales cloud & service cloud?

Capgemini f2f Interview Questions

1) Briefly, explain about yourself?

2) What is Salesforce architecture?

3) What all the services provided in cloud computing?

5) What is the difference between profiles and roles?

6) What are web services? why we need to go for them? What is WSDL? What is SOAP?

7) Here you attended Capgemini written test. If you got selected here you will be sent to technical round..if
you got selected in the technical round then you will be sent to HP for client interview, because HP is the
client to Capgemini. If you got selected finally.Then you will be put into work. This is the scenario. which
process do you apply here either “WORKFLOWS” or “APPROVALS“.

9) How you will make a class available to others for the extension? (Inheritance concept)

10) In the process of creating a new record, how you will check, whether the user has entered email or not in
the email field of Account object? Validation Rules

11) How you will write a javascript function that displays an alert on the screen?
12) What is the value of “renderas” attribute to display o/p in the form of Excel Sheet?

13) How you will get the javascript function into the Visual-force page?

14) Can we create a dashboard using the Visual-force page? and what all the components we use here?

15) What are web tabs?

16) How you will add an attachment from VF page? tell me the component names to achieve this
functionality?

17) Security(OWD, Sharing Rules, Manual Sharing).

18) Rate yourself in salesforce?

21) You will be given pen and paper, they will ask you to write some simple code.

American Express F2F Interview Questions

1) What is the trigger in Salesforce? Types of Trigger?

2) What are default methods for Batch Apex?

3) Analytical snapshot?

5) Other than Data Loader any other way to import Bulk Data?

6) Explain any scenario occurred you to work beyond Governor Limits?

7) How u will do Mass Insert through trigger?

7) How u will do Mass Insert through trigger?

8) If I want to Insert, Update any record into ‘Account’. What trigger I have to use?

HYTECHPRO COMPANY QUESTIONS

1) There is a field billingAddress in company object. Whenever a new employee is inserted or an old one is
updated employee’s billing address should be copied to company’s billing address. The company is master
and employee is the child. Write trigger.

2) There is a checkbox__c in opportunity. Write a batch class to update(checkbox__c = true) in all the
opportunity which is created in last 1 hour.

3) Write a trigger to delete all the contact created while lead conversion. Prevent the contact creation while
Lead conversion. Is this possible?

4) Write SOQL query to get all the Account having contact.

5) Write SOQL query to get all the Account having no contact.


6) Write SOQL query to get all the Account having lost opportunity.

F2F HytechPro Questions

1 – What is fieldset in Salesforce? Field Set


2 – What are setup and non-setup objects in Salesforce?

3 – Write a trigger to insert a contact and user when the account is created.

4 – What is Mixed DML and how would you handle it.

5 – What are lightning components? Have you ever developed any lightning Component?
6 – Does your company works on Lightning component or Lightning Experience?

7 – Responsive Email templates?

================ Questions from Oct 2017 market =============

Ques 1.
Explain Below
<apex:actionFunction>
<apex:actionSupport>
<apex:commandLink>
<apex:outputLink>
<apex:outputText>
<flow:interview>
Ques 2.
What are Best code practices?

Ans: below are the best practices (https://developer.salesforce.com/page/Apex_Code_Best_Practices)


#1: Bulkify your Code
#2: Avoid SOQL Queries or DML statements inside FOR Loops
#3: Bulkify your Helper Methods
#4: Using Collections, Streamlining Queries, and Efficient For Loops
#5: Streamlining Multiple Triggers on the Same Object
#6: Querying Large Data Sets
#7: Use of the Limits Apex Methods to Avoid Hitting Governor Limits
#8: Use @future Appropriately
#9: Writing Test Methods to Verify Large Datasets
#10: Avoid Hardcoding IDs

Ques 3.
How to bypass Mixed DML operation error in main class?
Ans: Asynchronous call (Future Call, Batch Job, Queueable Job)

Ques 4.
How can we query More than 50000 rows?
Ans: use SOQL with "Read Only". That will fetch upto 5 lakh records.
Ques 5.
How to setup service cloud & sales cloud.

Ques 6.
How to migrate Japanese data from one org to another org using Data Loader.

Ques 7.
Can we call callouts using batch job, how, what is the time limit.
Ans: Yes, we can. Time limit is 120 sec.

Ques 8.
Explain Rest & SOAP api with scenario's.

Ques 9.
What is the difference between Roles, Profiles. How they are important for Salesforce security.

Ans: Roles are used to defined Record level access, while Profiles are used to define Object level access.
Ques 10.
What is OWD and how to setup it for Community User.

Ques 11.
Can we delete users in Salesforce and how?

Ans: No, we can deactivate them.

Ques 12.
Can we query Deleted record (recycle bin) in developer console?

Ques 13.
What are Sharing setting, Manual share, Apex share. Explain with example.

Ques 14.
If OWD is public read/write, can we enable manual share? or What are the pre-requisite for Manual share.

Ans: No, to manually share a record OWD setting must not be Public Read / Write and User must have
permission to share the record.

Ques 15.
Can we migrate custom object tabs with Change set, and if yes, explain how they will be assigned to
profiles?

Ques 16.
Can we assign permission set to group, queue?

Ans: No. Only to user's

Ques 17.
What is use of Permission set, and how they can be assigned using Apex.

Ans: Permission Sets are used to open access on objects for particular user's which are not provided by
Profile permissions.

To assign Permission Set, create a new record for "PermissionSetAssignment"

Ques 18.
Can we provide View all, modify all access on Standard object in profile.

Ans: No, create Permission Set and assign to user.

Ques 19.
What is author apex permissions.

Ques 20.
What are Automation process, explain each of them
1. Process builder
2. Approval Process
3. Workflow
Ques 21.
What is difference between Process Builder and Workflow.

Ans: Process builder is much advanced approach as compare to Workflow.


Benefits of Process Builder:
 Send Email Alert
 Field Update
 Create New task
 Compare Reference Values.
 Initiate Approval Processes.
Ques 22.
When we need to choose Workflow over Process Builder.

Ans: When we need to send Outbound Messages

Ques 23.
Do you know User Email Setting, if yes, what is return address and how to set it up using apex.

Ans: Yes, User Email Settings are basically Reply-To Address that is defined under User --> My Setting -->
Email Setting.
This email is used to set particular Email Address where customer will response.

Query: [SELECT Id, SenderEmail FROM User]

Ques 24.
What are various type of Reports.

Ans: There are 4 types of reports:


1. Matrix report
2. Summary Report
3. Tabular Report
4. Joint Report
==========================================================
==========================================================
============= Latest Questions ===============================
==========================================================
==========================================================
1. How external object words?
2. Streaming API is what? It works on what method?
3.Lightning record page
4.Lighting compo vs VF compo
5.What is canvas?
6.How to perform DML from JS?
7.How to show lighting compo on external platform?

=============== Vodafone Nov 30======================


1. How can u load of master and detail record in one shot ?
>> using UPSERT
2.Tell me one case when u will use remoting.
3.Explain lightning events in detail.

Potrebbero piacerti anche