Showing posts with label Salesforce.com Interview Question. Show all posts
Showing posts with label Salesforce.com Interview Question. Show all posts

Thursday, January 23, 2014

When to use Before Trigger and After trigger in Salesforce

When to use Before Trigger and After trigger in Salesforce?

Before Apex Trigger:-
In case of validation check in the same object.
Insert or update the same object. 
Modify the Values based on the Business Requirement (Ex Country value = US, then automatically fill the zipcode)

After Apex Trigger:-
Insert/Update related object, not the same object.
Notification email.
We cannot use After trigger, if we want to update a record because it causes read only error. This is because after inserting or updating, we cannot update a record.
For instance, if you’re getting an error message Like "System.FinalException: Record is read-only".

Tuesday, January 21, 2014

What is S-Control

What is S-Control

 S-Controls are the predominant salesforce.com widgets which are completely based on Javascript. These are hosted by salesforce but executed at client side. S-Controls are superseded by Visualforce now.

What is the use of Profiles in Salesforce.com

Profiles help determine record privileges. Assuming the User can see the record, Profiles determine what the User can do, view or edit on that record. Profiles control other system privileges as well (mass email, export data, etc) . we have many types of permissions.
Custom App Settings
Tab settings for standard/custom obj – default off?
Administrative permissions
General User Permissions
Object Permissions for standard/custom obj              
Field level security for standard/custom obj
Record Type Settings

Enable Apex/VF files

What is the Use of Roles in Salesforce.com

What is the Use of Roles in Salesforce.com

Roles are one of the ways you can control access to records. They also impact reports (e.g. "My Teams" filter). Roles come into play if your security model (OWDs) are set to private. There are four levels of access that can be set:
Public Read/Write/Transfer (only available of Leads and Cases)
Public Read/Write
Public Read/Only
Private

Difference between Roles and Profiles

Difference between Roles and Profiles

The way I normally explain this is that the Role determines what is visible to the user and the Profile determines what actions they are allowed to perform.

Profile – gives combination of access control and permission to users.
Permission set  -It enhances functionality of profiles.
Imagine a scenario where only one user needs access to "Account " object and he belong to some 'Any XYZ' profile. then we need to modify that profile which will effect other users with the same profile.(one profile have many users  )
so alternatively we can create a permission set with access to "Account“ object and assign that to that particular user.

Settings that specify which apps are visible in the app menu
Settings that specify which connected apps are visible in the app menu
Permissions to access objects and fields, and settings such as tab availability
Permissions to perform app-specific actions, such as "Manage Call Centers"
Permissions to execute Apex classes
Permissions to execute Visualforce pages


Permissions to perform actions that apply across apps, such as "Modify All Data"

What is Apex

It is the in-house technology of salesforce.com which is similar to Java programming with object oriented concepts and to write our own custom logic

Friday, June 1, 2012

Salesforce.com Interview Question


  1. Difference between Data Load v/s Data Export.
  2. Difference between Master Detail v/s Lookup.
  3. What is the Trigger Oder execution?
  4. What is Force.com?
  5. What are New Release Summer’11 Features?
  6. What is OWD and what is different type of sharing?
  7. What is Apex Governor Limits and how it work and all new rules?
  8. What are Record Type and Page Layout?
  9. What is Trigger Best Practice and how can write SOQL?
  10. Difference between with Sharing v/s without sharing
  11. What is Queue Group?
  12. Difference between External Id and Data Type of Id.
  13. Difference between Standard v/s Custom Controller v/s Extension.
  14. What is Multitenant and Application Server for Salesforce?
  15. What is Trigger context Variable and mode?
  16. Difference between trigger.new v/s trigger.old.
  17. How to use AJAX in Salesforce?
  18. What’s the used of Web service?
  19. What is Field set?
  20. What is SOAP (Simple Object Access Protocol)/
  21. What is Rest API and which are used in Salesforce?
  22. What is Callout=true and where it is used?
  23. What are the apex: insert apex: composition tag?
  24. What us Enum?
  25. What are recursive triggers? How can we avoid the recursion problem?
  26. What are the types of relationship?
  27. Visualforce Action tags like apex:function,support etc?
  28. What is Visualforce template and how can we do? Or insert/composition tag etc
  29. Difference between assignment and escalation rules?
  30. Difference between task and event.
  31. Difference between WhatId and WhoId.
  32. What is change set and difference between Eclipse/Ant tools?
  33. What is the use if Custom Setting?
  34. What Scheduler class and how can use?
  35. Visual force page order execution load/action etc?
  36. Visualforce email template class and test method of this class?
  37. How is Role Different from the Profile?
  38. What are the different ways of making a field mandatory?
  39. What is the difference between Customer Portal and Partner Portal?
  40. What is difference between Workflow and Approval process?
  41. What is used of Roll of summary field and where can we use?
  42. What is actionPoller tag?
  43. What is the difference between a Profile and Role?
  44. What are wrapper classes in salesforce.com?
  45. What is batch apex and Salesforce limitation for this batch?
  46. How can we write Webservice for Salesforce?
  47. Difference between HTTP and HTTPS request and response?
  48. What are global variables and how can use in VF page?
  49. What is jQuery and how can use in VF page?
  50. What will happen if the Account is deleted? 
  51. What is transient and where we can use in salesforce?
  52. Difference between final/instance of/super/this keywords?
  53. What is annotation (@) and type of annotation like Deprecated/Future/is Test/ Remote Action etc and difference?
  54. Difference between List/Set and Map and uses?
  55. Difference between SOQL and SOSL and uses?
  56. Difference between Enterprise and Partner WSDL?
  57. What is site in salesforce and where can we use?
  58.  How can call Apex controller class from visualforce page without command button?
  59. What is ifram tag and how can we use?
  60. What apex:insert tag and how can we used?
  61. What is Action class and where we can use?
  62. Difference between Custom List Buttons using Standard List Controllers?
  63. How can use time based workflow and how can use outbound messages?
  64. Difference between Debug Log/System Log etc.
  65. What is Queue and how can we use in salesforce?