Difference Between (Salesforce)

Difference Between

Compiling the difference between Salesforce objects/items/whatever for quick reference compiled from different sources

1. Global and Public in apex language
Public:

This means the method or variable can be used by any Apex in this application or namespace.
Global:
This means the method or variable can be used by any Apex code that has access to the class, not just the Apex code in the same application. This access modifier should be used for any method that needs to be referenced outside of the application, either in the SOAP API or Batch Apex or by other Apex code. If you declare a method or variable as global, you must also declare the class that contains it as global.


2. Difference between isBlank and isNull
ISBLANK() has the same functionality as ISNULL(), but also supports text fields. Salesforce will continue to support ISNULL, so you do not need to change any existing formulas. ISNULL(): Text fields are never null, so using ISNULL() with a text field always returns false.

3. Difference between Role and a profile
Profiles are both features that can be added to a user record in Salesforce. Roles are optionally added while Profiles are a basic requirement of setting up a user.

Profiles help to control object privileges such as CRED (Create, Read, Edit, Delete). They also contain system permissions that a user can carry out such as exporting data.

Roles on the other hand help with sharing records across an organisation. They work in a hierarchical fashion, giving users access to records that are owned by people lower down in the hierarchy.

4. Difference between Salesforce.com & Force.com?
Salesforce.com is SaaS(Software-as-a-Service) product while Force.com is a PaaS product (Platform-as-a-Service). Salesforce.com has a selection of prepackaged solutions such as the Sales & Service Cloud that are designed for a specific purpose. While Force.com allows you to build your own applications. Salesforce.com is built on the Force.com platform.

5. Difference between Workflow and Process Builder
Workflows and the Process Builder are declarative automation tools that can be used to extend the Salesforce platforms functionality. Both have point and click functionality and have a variety of functionality and features to automate business processes.

Workflow rules – An automation tool that can evaluate an argument, and kick off an automation function. These functions can include a field update, sending an email message, creating a task, or sending an outbound message. A workflow can only evaluate a single criteria before it either triggers the automation or does not.


Process Builder – The process builder is a newer automation tool that has a wider variety of functions. These include creating a record, updating child records, posting to chatter, launching a flow and more. The process builder can evaluate multiple criteria and trigger different automation depending on the one met.

6. Difference between Record Types & Page Layouts
Page Layouts
“Page layouts control the layout and organization of buttons, fields, s-controls, Visualforce, custom links, and related lists on object record pages. They also help determine which fields are visible, read only, and required. Use page layouts to customize the content of record pages for your users.”

Record Types
“Record types let you offer different business processes, picklist values, and page layouts to different users. You might create record types to differentiate your regular sales deals from your professional services engagements, offering different picklist values for each.”


more details : https://www.salesforceben.com/when-to-use-record-types-vs-page-layouts/

7. Difference between Data table vs page block table tags
Page block:

It defines inside the pageblock station or pageblock

To design the visual pages it uses style sheets

The required attribute is “value”

Automatically it will display Column Headers

DataTable:

No need to mention inside the pageblock station or pageblock

No required value.

The data will be displayed using custom style sheets.


we need to specify column headers explicitly.
8. Difference between insert() and database .insert()
Using the insert method we can insert the records but if any error occurs in any record system will throw an error insertion fail and none of the records are inserted. 


If we want to execute partially success of bulk insert operation we will use database .insert

9. Difference between < apex:inputText / > Vs < apex:inputField / >
inputField - copy the field from any object and display on a VF page | like copy paste work.

inputText - it will help to create a field from scratch | new creation

9. Difference between SOQL Vs SOSL in salesforce

10. Difference between trigger and workflow?
Workflow:
Workflow is an automated process that fired an action based on Evaluation criteria and rule criteria.
We can access a workflow across the object.
We cannot perform DML operation on workflow
We cannot query from database
Trigger:
A trigger is a piece of code that executes before or after a record is inserted or updated.
We can access the trigger across the object and related to that objects
We can use 20 DML operations in one trigger.
We can use 20 SOQL from the database in one trigger.

11. Difference between WhoID and WhatID
WhoID refers to people like contact or leads. Whereas “What ID” refers only for objects.
12. Difference between SOAP API and a REST API
SOAP APIs use WSDL files to make objects and database access available to Salesforce. REST can be JSON- or XML-based, while SOAP is only XML-based. REST is most often used by mobile apps, while SOAP is used to connect with legacy systems. 

For example, if we want to connect to SAP using Salesforce, then SAP will provide a WSDL file to connect to their database. We can use REST when a third-party system wants to extract data from or insert data into a Salesforce database.
13. Difference between Standard and Custom Controller in Visual force
Standard Controllers generate automatically for all standard pages. They contain the same logic and functionalities that are used for any standard Salesforce page. They can be used with standard and custom objects.

Custom Controllers override the standard functionality of a standard controller which appears on a Visualforce page. Apex can be used for writing a custom controller or a controller extension.

more...

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 Visual force pages through the controller attribute.

14. Difference between S-Controls and Visualforce
S-Controls are widgets inside the Salesforce platform. This is now superseded by Visualforce, however, which is the new markup language for Salesforce

No comments:

Post a Comment