Data Modeling
2.What is Salesforce? Ans: Salesforce is a customer success platform, designed to help you sell, service, market, analyze, and connect with your customers.
- Salesforce has everything to run our business from anywhere. Using standard products and features, you can manage relationships with prospects and customers.
- Salesforce is a cloud based CRM application. It is number one platform as a service.
- Force.com is the platform used to build Salesforce application.
Ans:In Salesforce an Object is a database table which stores data specific to the organization. Table means we have rows and columns.
- In Salesforce Columns are called Fields and rows are called Data or Record.
- Standard Objects: Objects which are already provided by Salesforce are called Standard Objects. Ex:Account, Contact, Lead, Opportunity.
- We can not delete Standard Object, we can only Rename them.
- We Can do anything to the custom object like Delete, Rename.
Note:We can identify an Object is Standard or Custom by using their API Name, Custom object API Name ends with __C(Double underscore'C'). Simply remember 'C' means Custom. But Standard object API name never ends with __C.
3.External Objects: External objects are similar to custom objects. They allow you to map the data stored outside of our Salesforce organization using Salesforce Connect.
Eg: you may have data stored in enterprise resource planning(ERP)system. You can access these data, in real time, in salesforce through external objects using Salesforce Connect. External objects are usually identified by a__x. suffix.
4.What is field in Salesforce?
Ans: As we already discussed a field is nothing but a Column in database table. In Salesforce we have two types of fields
1.Standard Fields: The fields which are already provided by salesforce are called Standard fields.
- Id
- Is deleted
- Name
- Created Date
- Created By Id
- Last Modified Date
- Last Modified By Id
- SystemModeStamp
- LastViewedDate
- LastReferencedDate
- We can delete and rename to custom fields.
- In Standard objects we can create custom fields.
- If we create an object by default some fields will be provided by salesforce those are Standard Fields , and we can also create Custom fieds in Custom Objects.
- Relationship Fields : Lookup Relationship, Master-Detail Relationship, External-Lookup Relation.
- Read Only fields:Auto Number, Formula Fields, Roll-Up Summary.
- Checkbox
- Currency
- Date
- DateTime
- Number
- Phone
- Percentage
- Picklist
- PickList(Multi-Select)
- Text
- TextArea
- TextArea(Long)
- TextArea(Encrypted)
- Time
- URL
- It generates the numbers in sequential manner and in specific format with starting number
- This is Read Only Field we can not set values for numbers.
- It will be edited only at the time of creation.
- While creating Auto Number we have one checkbox called Generate Auto Number for existing records. If we check that checkbox then it will generate number for existing records also.
- This is Read Only Field we can not set value to the field.
- The value of the field will be calculated based on the given formula whenever the record is quired or displayed to the end user
- The value in formula fields are not stored in Database
- Data types available in formula fields are Checkbox, Currency, Date, Date/Time, Number,Percent,Text,Time
- The value of the field will be updated automatically whenever the child record is created or updated.
- This is Read Only Field.
- Roll-up Summary Field is enabled only on Master in Master-Detail Relationship.
- We can create upto 25 Rollup Summary fields.
- Custom Object Tab
- Web tab
- Visualforce Tab
- Lightning Components Tab
- Lightning page Tab
- An App can contain custom object, tabs, PageLayout etc.
- We have two types of apps Salesforce Classic App and Salesforce Lightning App.
- We have two types of fields in field dependency 1.Controlling Field 2. Dependent field
- Controlling field should be a Picklist or Checkbox
- Dependent field should be a Picklist or Picklist(Multi-Select).
- We can use any custom or standard picklist with less than 300 values, or any checkbox field witin a single record as a controlling field.
- Picklist can have 1000 values but a controlling picklist can have only 300 values.
- Standard Picklist(given by salesforce) always be a controlling field.
- If we need to track the history of fields we should enable Track Field History at the time of creating object
- If the field value is more than 255 characters the previous and current values can not be tracked just shows as edited.
- Formula fields, Auto Number fields, Rollup Summary fields,Created by Id for such type of fields we can't track history.
- We can not track history to the Textarea and Multi Select just shows as edited.
- Maximum number of fields enabled for Tracking History is 20
- You can create Lookup relation even if the records exist in the object
- Field is not mandatory
- If you delete parent, child will not be deleted but the value of the field becomes empty.
- Rollup summary field is not allowed because field is not mandatory.
- We can create upto 38 to 40 relationships.
- It is not controlled by Parent.
- We can not create M-D relationship if the records are already exist in the object.
- Field is Mandatory.
- If you delete Parent, child will automatically deleted
- Rollup Summary fields are allowed
- Only 2 M-D relationships are allowed per object.
- It is controlled by parent.
- Cascading Undelete.
- Record types are also used to assign the different page layouts to different Record types.
- We can assign different picklist values to different Record types.
- We have to create page layouts for Record types.
- we can't delete or edit the record type for an object if that object is referenced in Apex.
- In Page layouts we can make the fields " Required" or "read only".
- We can reorganize the fields like adding the fields and removing the fields.
- We can also add blank spaces and can create separate sections.
- We can assign different pagelayout to different record types.
- We can organize custom links and custom buttons in page layouts.
There are different types search layouts available for objects.
- Search Results: This search layout determines the fields that are displayed when we do global search.
- Lookup Dialogue: This layout defines the fields that are displayed after you do search from a lookup dialogue.
- Object Tab: Tab search searchLayout determines the fields that are displayed on searched home tab for recently viewed, created or modified records.
- Search Filter fields: This layout determines the fields that are available to filter search results.
- If you search for any record in global search then it will display more number of records, if you want to filter that records then use search filter fields.
Note: Search layouts can be customized for custom objects in the same way as standard objects. we can add upto 10 fields, but can not remove identifying fields such as account or case number.
17.What is Validation Rule?
Ans: Validation rule is a way to validating the data whether the entered data is correct as per organization rule.
- Simply we can say validation rule is the way of enforcing the user to enter the correct data into database.
- Validation rule throws an error message if the user enter the data, that is not specified to that rule.
I am mentioning onlw few functions. You please go through all the functions.
AND(Condition1,Condition2,.........,Condition n)
It returns true if all the conditions are true, if any one condition is false it returns false.
OR(Logic1,Logic2,........., Logicn)
It returns true if any one of condition is true, and it returns false when all the conditions are false.
IF(LogicalTest, Value if true, Value if false)
It evaluates the expression on two cases of True/False.
INCLUDES(multi-select picklist field, text literal)
It is used to evaluate whether the given value is available selected values in the multi select or not.
ISBLANK(Expression)
Checks whether an expression is blank and returns true or false. It is uesd to check the values of text fields, email and text area fields.
ISCHANGED(field)
Checks if the field's value is different from it's prior value and returns true if the value differ, otherwise returns false.
ISNULL (Expression)
Checks whether an expression is null and returns true or false. Mainly it is used to evaluate if the field is having a value or not. It used for fields like Date, Number, Phone, Relationship etc.
ISPICKVAL(Picklist field, text literal)
It is used to check the picklist value. It returns true if the selected value is "text literal".
LEN(Text)
Returns number of characters in a text string
PRIORVALUE(field)
It returns the previous value of the field.
BEGINS(Text, Compare text)
It is used to compare a string whether a string starting with a given string or not.
CONTAINS(Text, Compare text)
It returns true if the text contains the compare text else returns false.
NOT(logical)
It returns false if the logical returns true.
TODAY()
Returns the current date
TEXT(Value)
It converts given value into text using standard format. It uses to check picklist values etc.
VALUE(Text)
It converts a text string that represents a number to a number.
18.What is workflow?
Ans: Workflow is an automated business process which executes whenever the record is created or edited.
We have 4 types of actions in Workflow
- Email alert
- Field update
- Task creation
- Outbond message
- Immediate Workflow actions
- Evaluation Criteria
Evaluation criteria explains when the workflow is to be executed.
- Again in Evaluation criteria we have 3 types.
- Created
If the Evaluation criteria is "Created", whenever the new record is created at that time only the workflow will executes.
2.Created and everytime it's edited
If you select this criteria, whenever the record is created or edited it will be executed.
* How many times you will edit that many times it will execute.
3.Created, and anytime it's edited to subsequently meet criteria
* If you select this criteria whenever the record is created it will executes
* It will not execute TRUE to FALSE and TRUE to TRUE, executes only when FALSE to TRUE(means when criteria become false stage to true stage then only it executes).
2. Rule Criteria
It is nothing but a condition, if the condition is true then only the workflow will be fired.
*About Field update action
We can update field of same object an we can update field only in master in M-D Relationship.
We can not update field in Lookup Relationship.
We can not update child record.
* we can add 10 time triggers for workflow
Workflow Scenario
We have a "Time based workflow" and there is action scheduled to be executed, if we deactivate the workflow, scheduled actions will be removed from queue or not?
Ans: Even after deactivating the workflow, its actions will not be removed. it will be active in queue.
We have time based workflow and there is action to be executed, can we delete that workflow?
Ans: It is not possible to delete the workflow, when the workflow is having any pending time dependent actions.
When we can not add time dependent action in workflow rule?
- when workflow rule is active
- when workflow rule is deactivated and has pending actions in the queue.
- when the evaluation criteria is created and every time its edited.
- One process builder is equal to 10 workflows
- In workflow we have only one criteria but in process builder we have 10 criterias.
- Process builder works in IF ELSE mode with 10 criterias
- Only one criteria will be executed once, if one criteria is true it ignores all other criterias.
- Unlike Workflow we can update child records as well.
We can perform following actions using process builder
- Calling Apex
- Creating a record
- Updating a record
- Email alerts
- Calling flows
- Post to chatter
- Calling Process
- Calling Quick Actions
- Quip
- Send custom notification
- Submit a record for approval
20. What is Mini PageLayout?
Ans: Mini Page Layout is a layout defined from the existing "Page layout". It is a subset of units existing in page layout. It is defined to show hover details when you mouse over a field on an object's detail page or in the Recent item section of the sidebar.
No comments:
Post a Comment