Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
====================================
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:
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
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:
i = m1.get('hello')+1;
m1.put('hello',i);
map<string,integer> m2 = m1;
return m2;
integer i = 100;
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:
try {
catch(Exception e){
System.debug(e);
}
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
Skill: Salesforce
Questions:
Mindtree Interview
Skill: Salesforce
Questions:
Skill: Salesforce
Questions:
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:
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.
6. What is WSDL ?
A. WSDL stands for Webservices Description Langugage.
It contains types, messages,port types and Binding.
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
FLS in APEX:
https://developer.salesforce.com/forums/?id=9060G0000005hnvQA
A
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
BA Related questions
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.”
========
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.
3 auto response
1.
Whats r'ship between Account,Contact,Opportunity,Case
2.
3.
Can we make a field mandatory in trigger?
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.
9.
How to create a custom button/link n make it appear.
10.
What all errors u came across in SF.
11.
What is REST API?
Why we go for that?
12.
Inbound integration steps in SF?
(other SAP contacting SF by web service)
13.
Outbound integration steps in SF?
(SF contacting other SAP by web service)
14.
SF has schema.
External system need to know abt that.
How it can?
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?
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:
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.
---------------------------------------------------------------------------------
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?
========
Lead conversion:
--
Mapping 1 custom lead field to 2 other objects (Opportunity and Contact Objects)
=============
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)}"
/>
=================
=================
https://www.biswajeetsamal.com/blog/dml-operation-on-visualforce-page-load-in-salesforce/
=================
=================
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
===========
Report Types:
1.Summary
2.Tabular
3.Matrix
4.Joined
===========
============
============
============
============
1.Getter /Setter
2.Action
3.Consrcots
4.action button
5.remoting
================
================
http://www.sfdcbook.co/2018/12/difference-between-lightning-components.html
=================
=================
Company : Infosys
https://developer.salesforce.com/forums/?id=906F0000000B3FPIA0
Limits:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm
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/
1.Owd is private and one user is still able to see and edit the object. How it is possible.
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?
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
Ans -Yes
Ans - no
Deloitte
Infosys, Wipro
=====================
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_helper.htm
====================
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
===================
Ex:
.THIS.white {
background-color: white;
}
-- 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
===========
============
===========
============
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
https://salesforce.stackexchange.com/questions/172265/can-we-access-auraenabled-variables-in-
auraenabled-methods
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/
Types of authorisation:
https://trailhead.salesforce.com/en/content/learn/modules/mobile_sdk_introduction/mobilesdk_intro_security
Deloitte, Hyd
Interview Questions
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.
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
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
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.
6. What is WSDL ?
A. WSDL stands for Webservices Description Langugage.
It contains types, messages,port types and Binding.
18. How REST can be accessed or which message format REST supports ?
A. REST supports both XML and JSON
1.
2. What to do if your salesforce org is closing the limit
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
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
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
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
1.
2. What are App Exchange and did you use any App Exchange in Salesforce? If yes,
provide me an detailed example.
1.
2. Different type of Sandbox and what is the difference between each sandbox
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.
2. type of Relationships?
6. visualforce vs lightning?
8. Agile methodology?
9. As admin what about your roles and responsibilities?
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?
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
14. We have “Time Based Workflow” and there is action scheduled to be executed. Can we
delete that workflow?
Ans. yes
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.
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
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
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
=================
=================
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:
============
Custom setting
https://developer.salesforce.com/forums/?id=9060G000000MVgMQAW
============
https://salesforce.stackexchange.com/questions/955/post-sandbox-refresh-steps
============
============
Bulk code:
https://developer.salesforce.com/page/Best_Practice%3A_Bulkify_Your_Code
===========
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
===========
https://success.salesforce.com/answers?id=9063A0000019bJgQAI
==========
=====================
=====================
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
=========================
==============
==============
==============
==============
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
==============
https://developer.salesforce.com/forums/?id=9060G000000BdVjQAK
==============
When is REST?
https://dzone.com/articles/web-services-architecture
===============
Data Skew?
https://sfdcbeginner.com/what-is-data-skew-in-salesforce.html
===============
Trigger
Use collection to store all PL values
===============
For VFP:
https://developer.salesforce.com/forums/?id=906F000000099BuIAI
===============
https://help.salesforce.com/articleView?id=000267082&language=en_US&type=1
===============
https://success.salesforce.com/answers?id=9063A000000DrXHQA0
========
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.
============
============
=============
https://trailhead.salesforce.com/en/modules/sales_admin_optimize_salesforce_for_selling/units/sale
s_admin_optimize_for_selling_unit_1
=============
https://sfdcpanther.wordpress.com/2018/02/23/dynamic-binding-salesforce-lightning-component/
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
1.Parsing XML:
https://developer.salesforce.com/forums/?id=906F0000000MJKNIA4
Using :: Database.AllowsCallouts
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() );
}
}
}
======================
============
============
CTI integration:
https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/
============
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
==================
==================
==================
===================
===================
Queueable Apex:
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/apex_queueing_jobs.htm
===================
Conditional exception handelling:
====================
====================
====================
====================
====================
https://developer.salesforce.com/forums/?id=906F000000092VoIAI
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
============================
============================
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/
==========
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
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
==============
===============
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
==========
https://www.slideshare.net/developerforce/lightning-components-performance-best-practices
==========
HCL, USA : 19 July
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/
=============
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:
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
===============
https://help.salesforce.com/articleView?id=000007225&type=1
================
Design pattern:
https://developer.salesforce.com/page/Apex_Design_Patterns
===============
Trigger.New vs Trigger.Old:
===============
===============
Why use 3rd evaluation criteria in WFR?
>>
===============
https://help.salesforce.com/articleView?id=000221049&type=1
Types of forecasting?
============
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?
============
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.
============
=============
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
Contains the metadata about all standard and custom fields and objects.
Does not contain metadata about objects and fields. Takes an array of key-value pairs.
=============
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
-==========
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?
======
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)
===============
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/
================
@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:
====================
Consume:
https://trailhead.salesforce.com/en/modules/apex_integration_services/units/apex_integration_rest_
callouts
====================
=====================
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.
<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.
================
https://developer.salesforce.com/docs/atlas.en-
us.lightning.meta/lightning/data_service_considerations.htm
https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_js_remoting_example.htm
=============
https://developer.salesforce.com/docs/atlas.en-
us.pages.meta/pages/pages_compref_actionFunction.htm
=============
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
==============
https://developer.salesforce.com/docs/atlas.en-
us.apexcode.meta/apexcode/langCon_apex_dml_database.htm
==============
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
}
what is responsiveness?
====================
https://developer.salesforce.com/blogs/developer-relations/2017/04/mastering-salesforce-lightning-
design-system-grids-lightning-layouts.html
====================
====================
====================
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
====================
===================
Cap Gemini : 25 May
=========
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.
==========
==========
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.
==============
Return type of future methods:
Methods with the future annotation must be static methods, and can only return a void type
==============
someRecord.SomeField__c.addError('Custom Message');
or
someRecord.addError('Custom Message');
If allOrNone is true, addError reverts entire DML operation. If an uncaught exception reaches the
DML layer, the entire operation is reverted.
================
https://developer.salesforce.com/forums/?id=906F0000000DD12IAG
============
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.
==========================
Difference between Custom Settings and 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.
============
https://help.salesforce.com/articleView?id=000232681&language=en_US&type=1
===========
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
==========
https://help.salesforce.com/articleView?id=rss_limitations.htm&type=0
===========
https://help.salesforce.com/articleView?id=networks_reporting.htm&type=5
==========
===========
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 ?
===========
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
============
<ltng:require scripts="{!$Resource.resourceName}"
afterScriptsLoaded="{!c.afterScriptsLoaded}" />
=============
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
==============
===============
=============
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?
==============
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:
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 ensure the records are shared with users of same partner in partner commu?
>> Make OWD = Private will take care
=====================
http://stephenscholtz.com/201201/migrating-role-hierarchy-between-environments-salesforce
===============
Autorabit used for:
Continuous integration
===============
===============
https://www.flosum.com/limitations-of-changesets/
===============
Benefits of DX?
https://developer.salesforce.com/platform/dx
===============
==========
Custom lead conversion:
over ride convert button
==========
order of execution means?
==========
how to avoid recursive trigger?
Static var
==========
===========
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
===========
===========
How to commu between compo?
===========
What is aura method?
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_tag_method.htm
===========
https://developer.salesforce.com/docs/atlas.en-
us.lightning.meta/lightning/ref_force_navigateToSObject.htm
=============
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
======================
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/
================
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?
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/
============
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.
sObject s = Database.query(string_limit_1);
Return a list of sObjects when the query returns more than a single record:
===============
One object - 3 trigger:
===============
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 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:
==================
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.
====================
https://salesforce.stackexchange.com/questions/117978/calling-an-apex-method-from-javascript
====================
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
========================
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.
You cannot call the Database.executeBatch method from within any batch Apex method.
===================
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.
============
====================
====================
Page 24:
https://resources.docs.salesforce.com/206/latest/en-us/sfdc/pdf/communities.pdf
====================
====================
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
=======================
==============
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:
How to do authorisation?
=========
=========
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
================
https://developer.salesforce.com/forums/?id=906F0000000BW0YIAW
https://medium.com/@weirdthinker15/uploading-a-document-to-salesforce-using-rest-api-
a7481324812a
=================
================
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.
==============
Conact names
http://biswajeetsamal.com/blog/difference-between-remote-action-and-action-function-in-salesforce/
=============
showing more than 1000 records in visualforce:
=============
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
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
=============
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.
========
Call Web service from Trigger:
https://developer.salesforce.com/forums/?id=906F00000008rqjIAA
========
Do we have view state error in Lightning? >> No
=======
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
===================
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
====================
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:
==================
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.
====
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
==========
============
- 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.
============
============
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 .
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.
=============
=============
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:
UI interface
Cons:
=================
================================
================================
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
==================================
===================================
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
=====
======
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.
=======================
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?
https://trailhead.salesforce.com/en/modules/service_live_agent/units/service_live_agent_get_started
=====================
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
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?
============
============
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
=====================
https://developer.salesforce.com/page/Integrate_Salesforce.com_With_Your_On-premise_Database
https://developer.salesforce.com/forums/?id=906F0000000BQLdIAO
=============
if(a.Status == 'Failed') {
// 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
=============================
What is Lightning data service?
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service.htm
=========
=========
http://sfdcmonkey.com/2017/12/26/validation-past-date-lightning-component/
=========
What is CLM?
http://cloudsense.com/platform/contract-lifecycle-management-clm/
==========
https://developer.salesforce.com/forums/?id=906F0000000BPg1IAG
===========
===========
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
==============
=============
=============
=============
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
============
https://developer.salesforce.com/forums/?id=906F00000008yIyIAI
=============
=============
FF limit: 5000 (combined)
=============
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.
=========
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
==============
{!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:
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:
=================================
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
==================================
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.
===================================
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.
==================================
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
==============
=============
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.
================
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.
===============
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
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
All custom and standard objects inherit from the sobject superclass
http://www.differencebetween.com/difference-between-virtual-and-vs-abstract/
PageBlockTable Vs DataTable:
PageBlockTable:
Company = ABsyz
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?
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
==================
Infosys -- 19 Dec
==================
REST vs SOAP
Enterprise WSDL
Contains the metadata about all standard and custom fields and objects.
Partner WSDL
Does not contain metadata about objects and fields. Takes an array of key-value pairs.
============
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?
=============
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
=================================================
CISCO – 19 Dec
=============================================
======
database.insert(list true)
========
Why future method?
=========
Zensar – 10 Dec
===============================
===============================================================
==============================================================
==================Category Wise================================
===============================================================
================================================================
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 ========================
=========================================================
=========================================================
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
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.
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
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?
Trigger is a code that is executed before or after the record is updated or inserted
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.
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?
Hierarchy type
List type
15) Mention what are the three types of object relations in Salesforce?
One to many
Many to many
Master detail
16) Mention what are the different types of reports available 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.
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.
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.
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.
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.
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.
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}
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:-
The advantage is that earlier, we had to create custom fields to group or segment certain data.
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.
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 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.
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.
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.
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.
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.
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.
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.
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:-
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:-
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:-
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:-
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.
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>();
</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).
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){}
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.
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.
=========================================================================
=========================================================================
=================== Without Answers =====================================
=========================================================================
=========================================================================
30. How many triggers we can make on one object but if you're making what is the best practice?
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?
38. Can we define two triggers with the same event on a single object?
46. Could you please explain to me how to Batch class work step by step?
54. Can we call another Batch class from another batch class? How?
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?
6) Batch Apex?
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?
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];
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?
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?
16) How you will add an attachment from VF page? tell me the component names to achieve this
functionality?
21) You will be given pen and paper, they will ask you to write some simple code.
3) Analytical snapshot?
5) Other than Data Loader any other way to import Bulk Data?
8) If I want to Insert, Update any record into ‘Account’. What trigger I have to use?
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?
3 – Write a trigger to insert a contact and user when the account is created.
5 – What are lightning components? Have you ever developed any lightning Component?
6 – Does your company works on Lightning component or Lightning Experience?
Ques 1.
Explain Below
<apex:actionFunction>
<apex:actionSupport>
<apex:commandLink>
<apex:outputLink>
<apex:outputText>
<flow:interview>
Ques 2.
What are Best code practices?
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?
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?
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.
Ques 18.
Can we provide View all, modify all access on Standard object in profile.
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.
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.
Ques 24.
What are various type of Reports.