Admin-Session-4-8 Notes
Admin-Session-4-8 Notes
Step 2: Reports To
Tree View
-----------------------------------------------------------------------------------------------------------------
Profiles
3. Standard and Custom object that user can access and Specifies the Create/Read /Edit /Delete operations that
user can perform on the object
5. Apex Classes/ Visaulforce pages that user can see and Access
1.Standard Profiels
2.Custom Profiles
Standard Profiles: These are the profiles which are created by the SalesForce to meet the global requirement and
Standard CRM functionality
Ex: System Admin
Marketing User
Custom Profiles:
These are the profiles which are created by the user to meet the organizations business requirement.
Note: Every profile is created for a specific license and it can be assigned to the users who have purchased same
license
Step 4: Save
User::
1. Last Name 2.Nick Name 3.Email Id 4. User Name 5.Role 6.Profile 7. License
ANS: When you freeze the user he will not release the license he is holding
When you deactivate the user he will be releasing the license and we can assign to some other user.
Q:: How to load the documents from PC to salesforce server
Applications :
1.Standard Applications
2.Custom Applications
Standard Applications: These are the applications which are created by the salesforce to meet the global CRM
requirement are said to be standard applications .
Ex: Sales
CallCenter
Marketing
Custom Applications: Applications which are created by user to meet the business requirement of his organization.
App Label : This is the Name with which application is visible to the users in the UI
App Name : This is the Actual name of the application with which the application is referred
programmatically.
Step 4: Select the tabs which you want to display in the application
Ans : :The tab which we selected as default landing tab that tab data will be displayed on the first page of the
application
Step 5: Select the profiles to whom you want to display the application
Visable Defualt
Ok NO ====Application is Readable
Ok Ok ====Application is Readable and when user logins in with this profile this
Ans : This depends on the SalesForce Edition that you have purchased.
Enterprise : 10 APPS
Developer : 10 APPS
Professional : 5 APPS
Personal : N/A
Objects: Objects are nothing but the tables in the regular database.
: If we want store any type of data in SalesForce that will be stored in Objects
1. Standard Objects
2. Custom Objects
1.Standard Objects : These are the objects which are created by the SalesForce to meet the global CRM application
2.Custom Objects : These are the objects which are created by the user to meet the organizational business
requirement
Step 1: Object Label : This is the name with which the object is displayed to the users
Step 2: Pural Name : If we create a tab for this object the name that should be displayed on the tab is called Pural
Name
Step 4: Description : We can give the basic information about what type of data is stored in the object
Step 5: Context Sensitive help: On every page we have help lint provided by the SalesForce, when you click help
which help page should open .
Or
Step 6: Every Object that we create in the salesforce will have one field with Field Name “ Name” which was
created by salesforce .
1.Auto Number
2.Text
AutoNumber : System will autogenerate the no based on the format what we have given
Ex : EID-{0000}
Staring with : 1
EID-0001
EID-0002
Optional Features: These features can be enabled or disabled at any stage of the application. There are three
optional features
1. Allow Reports: If we want to create reports on this object this feature should be enabled, Once you enable it
SalesForce will create default report type on this object.
2. Allow Activities: If we want to create task or event on this object then this feature need to enabled.
3. Track Field History : This will track the field info like when it is modified and who has modified
Deployment Status:
1. In Development : If we select the status as in Development this object is not ready for access and only
System Admin can access
2. Deployed : This object is ready for access every once can perform DML operations based on their
permissions.
One Time Object Creation Options: These options are available only at the time of creating a object, Once object is
created we cannot enable or disable these options .There are such options
1. Add Notes and Attachments: When we enable this option we will have Notes and Attachment related list in
the detail page of the object where we can attach corresponding documents to the records.
2. Create Custom Tab on Object Creation: If we enable this option once object is successfully created
immediately it takes you to the tab creation Page.
Tabs: Tabs are the interface between the user and Object/ Webpage / Visual force Page
Step 2: Select the visibility of the tab to the profiles .There are three permissions
1. Tab Hidden : If you select this option ,tab is not visible to the users with this profiles
2. Default On : If we select this option, tab is visible the users with this profile and tab is displayed on the tab
panel
3. Default off : If we select this option ,tab is visible to the users with this profile but tab is not added on the
tab panel
Step 3: Select the applications in which you want the tab to included
1.Standard Fields
2.Custom Fields
Standard Fields : These are the fields which are created by the salesforce for every object.
1.Created By : Once record is created ,Those records remains on my name irrespective of whether user is active or
inactive
2.LastMofied by
3.Owner : Every record in the salesforce have owner ,Has is responsible for handling business with this record.
4.Name :
Custom Fields: These are the fields which are created by the user to meet the business requirement of the
organization
Technical Terms
1.Field Label
2.Field Name
3.Required
4.Length
5.Unique
6.Case Sensitive
7.Default Value
9.PageLayouts
10.Data Types
Field Label : This is the name with which this field is displayed to the users in the UI(User Interface)
Field Name :This is the actual name with which we have created the field in the object and we use this name to
refer to this field programmatically
Required: If we select required check box we can’t leave this field empty.
6.Case sensitive : if case you want to consider the caps and small different then select case sensitive
7.Default : This value will be displayed in the field whenever the field is loaded in the page
Data Type : This will indicate the type of data data that we can enter in the field and range of the data.
1. Text :
3. Text Area :
Ex: Text
Ex:
Length : 90
Required : No
Unique : No
External Id : NO
Step 3:
Select the field level security for every profile for the new field which you are creating
Step 4:
Text Encrypted :
View : only the users with view Encrypted view will be able to see this field
CQ: : Which statement is TRUE about Encrypted Custom Fields? Choose 3 answers:
A. Encrypted fields can be included in search results.
B. Encrypted fields are not available for validation rules or Apex scripts.
C. Encrypted fields can be included in report results.
D. Encrypted fields are not available in filters for list views, reports, and roll up summary fields
Currency : Length of Integer and Decimal together it should not be more than 18 digits
Ex: 88888.00
Ans: Old records which have selected ‘Hyd’ still can select ‘Hyd ‘
MultiSelect PickList : This is just like a picklist where we can select more than one option at a time .
Field Dependency : When value of one field controls the value of another field we call it a field dependency
Relations:
These are used to create /establish a relation between two or more objects
1. Master-Detail Relation
2. Lookup Relation
3. Junction Object(Many to Many)
4. Hierarchal Relation
Master-Detail Relation
1. A 2 A 3. A
| | |
B ------------------ -----------------------------
| | | | | | |
B C D B C D E
1. A 2. A B 3. A B C
| | | | | |
B -------- --------------------
| |
C D
1. A 2. A 3. A 4. A
| | | |
B B B B
| | |
C C C
| |
D D
|
E
13. Object which has two parents on it can never be a parent to some other object
A x A X
| | | |
-------------------- B Y
| | |
C C Z
| | |
D -----------
|
D
3. Sharing Settings : Select the Minimum level of access requied on Master object to perform
Read /Edit/Delete /Create on child records
Step 5: Add the field to the Child object default page layout
Step 6: Add the field to the parent object Page Layouts
Junction Object : Object on which we have two master –detail fields on it that we call it as junction object.
Lookup Relation:
Hierarchical Relation:
1.What is the maximum number of master-detail relationships that can be created on a custom
object?
A) 1
B) 2
C) 4
D) Unlimited
2. A developer has created a junction object. What is the significance of the first master-detail
(primary) relationship?
A)Look and feel, the junction object's detail and edit pages use the color and any associated icon of
the primary master object.
B) You cannot delete the primary relationship.
C) You cannot rename the primary relationship.
D) There is no significance
A) Creating the custom object to serve as the junction object between the two master objects
B) Creating two master-detail relationships
C) Customizing the related lists on the page layouts of the two master objects
D) Creating two lookup relationships
4. An organization wants to leverage custom objects to track bugs. The organization wants the ability
to relate bugs to parent bugs in a parent-child relationship. What type of relationship should be used?
A) master-detail
B) self
C) hierarchical
D) many-to-many
B
5. A developer wants to leverage the console view to see the parent object of the child object in focus
on the console. How would a developer specify what related list fields are displayed on the parent
object?
6.If a parent object has a lookup relationship defined with a child object, what happens to the child
object when you delete a record from the parent?
A.The child record is deleted
B.Nothing
C.The parent record cannot be deleted
D.The child record cannot be deleted
7.in a master-child relationship between a standard object and custom object which of the following
statements is NOT true? Please select two (2) items.
A.The standard object is always the master
B.The custom object is always the master
C.The custom object is always a child
D.The standard or custom object can be a master
E.The standard object is never a child
8. An organization wants to create a field to store manager data on the user object. The manager field is a
reference to another user record. What type of relationship should be used?
A.Master-Detail
B.Hierarchical
C.Lookup
D.Many-to-many
09.In a recruiting application, salary is a child object to a parent position object via a Master-Detail
relationship The min pay and max pay fields of salary object cannot be modified when the Position status
on the parent is 'Approve'. How would a developer design this?
A.Create a Visualforce component on the position detail page
B.Rollup-summary field
C.Validation rule on position object
D.Formula field on the salary object
E.Validation rule on the salary object
12.Object X has a lookup to object Y. Which of the following statements are TRUE? Please choose two (2).
A.Fields of both X and Y are accessible from object Y
B.Fields of object Y can be accessed from object X
C.Fields of both Y and X are accessible from object X
D.Fields of object X can be accessed from object Y
13.In a Master-Detail relationship, what happens when the a record is deleted from the parent object?
A.Parent record alone gets deleted
B.Exception occurs
C.Parent and child record will not be deleted
D.All child records are deleted
15.What is true about a master-detail relationship? Please select two (2) choices.
A. When the parent record has been deleted, all the child records will be deleted.
B. You can have a child record without the parent record.
C. You have to expose the master lookup field on the child detail page layout.
D. You cannot delete a child record
16. Roll up Summary Field works in the case of which relationship Select the correct choice
A. Master Detail
B. Master Master
C. Workflow
D. Validation Rules
E. Lookup
F. Do not lookup
G. Master to all
Roll up Summary :
1.This field can be created only on master object ( in the master –detail relation )
Ex:
Customer Transaction
1.Where can we create a rollup summary field in above context : Customer Object
1.Count : This gives the no of child record for a given master record .
|------T-01----Dep---10000
|-----T-02----Dep----20000
|----T-04----With----20000
Count : 3
Note : If we say include only the Transaction type :Dep in the Rollup then will be 2
2.Sum : This will return us summarized value of given field from the child object.
:We can choose any one of the Percentage ,Number ,Currency field from the child object.
Ex: CID-001------Sam-----Saving
|------T-01----Dep---10000
|-----T-02----Dep----20000
|----T-04----With----20000
Note : If we give a filter saying only those records whose transaction type is Dep to participate in the
3.Min : This wil return the minimum value from the given field of the Child object.
Ex: CID-001------Sam-----Saving
|------T-01----Dep---10000
|-----T-02----Dep----20000
|----T-04----With----20000
4.Max : This wil return the maximum value from the given field of the Child object.
Ex: CID-001------Sam-----Saving
|------T-01----Dep---10000
|-----T-02----Dep----20000
|----T-04----With----20000
Ans: 5 conditions
Ans : :10
Global Data : Data which remains same throughout the application ones user has logined to his account that data
we call it as global data .
Ex: $UserRole
$Profile
$System
Formulas : These the fields whose value is computed based on the existing fields in the objects .
Every formule will return the result and the formules in the salesforce will return the result in the form of
1.Text
2.Date
3.DataTime
4.Number
5.Currency
6.Percentage
7.Checkbox
1.Simple Formules : These are created to build simple logic using the fields which are compatable with
Advanced Formules : These are created when we have a complexed logic and we can use fields of the
To support the adavanced formules salesforce have given some predefined functions
Logical Functions :
AND: When all the given conditions are true this will return true
Ex: Employee with age above 25 and exp above 6 years should be selected
IF : When we have two options where contion is true return option1 else return option 2
Employee with age above 25 and exp above 6 years is selected else rejected
CASE When we have more than two choices we will use CASE
Calculate InterstRate :
Education : 12
Vehicle :14
Personal: 16
Housing :18
CASE(Loan_Type__c ,
‘Education’, 0.12,
‘Vehicle’.0.14,
‘Personal’,0.16,
‘Housing’.0.18,
ISNULL : This will return true if the field value is null ,This is used for checking numerical values and blank value is
never considered as NULL
ISNUMBER(10)===True
OR( cond1,Cond2,Cond3)
Math Functions :
ABS(-10)===10
2.FLOOR( 10.3)==10
FLOOR(10.9)===10
3.CELING(10.3)===11
4.CELING(10.9)==11
5.ROUND(10.3)===10
ROUND(10.9)===11
6.SQRT(9)===3
8.DISTANCE( g1,g2,units)
10.BLANKVALUE(field,Defualt)
11.LOG(23)
12.LN()
13.MAX(20,30,40)==40
14.MIN(10,20,30)===10
15.MOD( 23,2)===1
Date &Time
DAY(DATE(2014,12,25))===25
MONTH(DATE(2014,12,25))===12
YEAR(DATE(2014,12,25))==2014
7.DATEVALUE( expression) : This will convert the date and Time value to date
Text :
INCLUDES( MultiSelectPickList , literal) :This will return true if the given literal in the selected list of values
BEGINS(Text ,starttext) :
BEGINS(‘ABCD’,’A’)===True
FIND(‘AB’,’ABCABCSS’,2)====4
LEFT( ‘ABCD’,2)===AB
RIGHT(‘ABCD’,2)==CD
LPAD(‘ABCD’,6,’*’)===== **ABCD
RPAD(‘ABCD’,6,’*’)=====ABCD**
CONTAINS(‘ABCDED’,’DE’)==true
CONAINS(“AB:CD:EF’,’EF’)====true
VALUE(‘10’)===10
ISCHANGED(Amount__c)
Ex 1: Loan
2.Security :PickList
3.Installments :
Secutity =’salary’
Education : 48
Vehicle :24
Personal : 32
Housing : 120
Security :Assert :
36
CASE( Loan_Type__c,
‘Education’,48,
Validation:
Any one who want to apply for a loan based on salary they cant leave salary field blank
Any one who want to apply for loan based on Assers they cant leave assercost blank
Customer :
Balance
Transaction :
Amount :
Salary : 0
Saving : 2000
Currrent :30000
Customer__r.Balance-Amount__c<2000
),
AND ( ISPICKVAL(Customer__r.AccountType__c,’Current’),
Customer__r.Balance__c-Amount__c< 30000)
Transaction object
Type : Dep,With,EMI
After : After 5th of the Month then Service tax should be 10 % of the amount.
IF ( AND(DAY(Payment__c)>10 ,MONTH(Payment__c)>7),
1000,
0
)
IF the city what what you have selected is in Hyd,Che,Pune then you should enter pancard value
Name :
Age :
Child :
MyName =Parent__r.Name