Developer Fundamentals 3 Flashcards

Salesforce Data Model | Objects | Fields | Relationships | External Ids (159 cards)

1
Q

What is a Business Object?

A

Business objects, including Account, Contact, Opportunity, and Case, are provided by Salesforce, which means that custom objects are not required for them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are custom Objects used for?

A

Custom objects are used to store information specific to the company or organization, such as properties or employees.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the different types of relationships?

A

Lookup
Master Detail
Many to Many
External Lookup
Indirect Lookup
Hierarchical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

While objects in a lookup relationship are loosely coupled, objects in a master-detail relationship are tightly coupled. True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does a lookup relationship do?

A

Link two different objects in a loose relationship where the parent and child records have independent sharing settings and are deleted separately.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does a master detail relationship do?

A

Link two different objects in a tight relationship where the sharing settings of the child record depend on the parent’s, and deleting the parent also deletes the child record.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

While a many-to-many relationship requires a third object in order to create the relationship, the <Blank> object is only what is needed in a hierarchical relationship</Blank>

A

User Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does a many to many relationship do?

A

Link two objects such that a record of one object can be related to multiple records of another and vice versa.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does a hierarchical relationship do?

A

Create a lookup field to associate one user with another that does not directly or indirectly refer to itself.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does a External Lookup relationship do?

A

Link a child standard, custom, or external object to a parent external object using the standard External ID field.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does an Indirect Relationship do?

A

Link a child external object to a parent standard or custom object through a custom unique, External ID field.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Parent and child objects have independent sharing settings. Each object has an owner field. True or False?

A

True for lookup relationships
False for master detail

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Records of the child object will appear in a related list on the parent record. True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can you delete the parent of a lookup relationship?

A

The parent can be prevented from being deleted if children exist. Children can also be deleted when parent is deleted (requires Salesforce support).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Do Lookup relationships support roll-up summary fields?

A

Lookup relationships can link two objects together. They are similar to master-detail relationships but they do not support roll-up summary fields or sharing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Lookup relationships allow one object to be related to another in a one-to-many relationship. True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Lookup relationships can link one object with itself.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Where is the related list added in a lookup relationship?

A

Related lists are added to the Lookup Object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Is Child access inherited from the parent?

A

No. Access to child records is independent from access to parent records.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Standard report types are created for each lookup relationship. True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

True or False? Once a lookup relationship is defined, a related list that shows the child records can be added to the page layout of the lookup object.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

A custom report type can be created if additional fields from the lookup object are required for the purpose of reporting. True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is a Master Detail Relationship?

A

A master-detail relationship can be used to link two objects together closely.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Is record security inherited in a master detail relationship?

A

Yes. The detail records inherit the sharing and security settings of the master record.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Deleting the master record automatically deletes the detail records in master detail relationships. True or False?
True
25
Can rollup summary fields be created in master detail relationships?
Yes. Roll-up summary fields can be created on the parent object to summarize the detail records.
26
A master-detail relationship field is always required on the detail records. Reparenting detail records can be enabled or disabled. True or False?
True
27
Each object can have up to two master-detail relationships, but standard objects cannot be on the detail side of a master-detail relationship when a custom object is on the master side. True or False?
True
28
Can you reparent records that are part of a master detail relationship?
By default, reparenting of records part of a master-detail relationship is not possible. However, administrators have the option to ‘Allow reparenting’ when creating the master-detail relationship which allows custom object child records to be reparented to different parent records.
29
What happens when a detail record in a master detail relationship is deleted?
If a detail record is deleted, the detail record will be moved to the Recycle Bin but the master record will remain. Undeleting a deleted detail record will restore that record.
30
What happens when a master record is deleted from a master detail relationship?
If a master record is deleted, the master and any detail records will be deleted and moved to the Recycle Bin. Undeleting a deleted master record will restore that record as well as any related detail records.
31
Fact - if a detail record is deleted and then the master record is deleted, undeleting the master record would restore the master record but not the detail record as they were not related at point of deletion.
32
How is sharing and security handled in a master detail relationship?
Detail and subdetail record permissions and security settings are inherited from the master record.
33
Owner fields in a master detail relationship are not available on detail and subdetail records, as they inherit the owner of the master record. True or False?
True
34
Custom objects on the detail side of a master-detail relationship are unable to use sharing rules, manual sharing or queues, as the Owner field is required. True or False?
True
35
Master-detail relationships allow data from three objects to be joined in one report: the master object, the detail object, plus one other lookup object. True or False?
True
36
How do you create a Junction Object?
A custom junction object is created with two master-detail relationships, each for one of the two objects that need to be linked together.
37
How is record access determined in a many to many relationship?
Access to a junction object record is determined by a user’s sharing access to both master records.
38
Roll-up summary fields can be created on both master objects to summarize data from the junction object. True or False?
True
39
How does deletion work in a many to many relationship?
Junction object records are deleted when either associated master record is deleted. If both master records are deleted, the junction object record is deleted permanently.
40
What is a Junction Object?
Junction objects are used to create many-to-many relationships. They sit between the two objects to be related. On the junction object, two master-detail relationship fields are created.
41
What does the read/write setting on two master records in a many to many relationship do?
If the sharing setting is ‘Read/Write’ on the two master records, then a user must have ‘Read/Write’ access to both master records to get ‘Read/Write’ access to the junction object records.
42
What does the read only setting on two master records in a many to many relationship do?
If the sharing setting is ‘Read Only’ on the two master records, then a user must have ‘Read Only’ access to both master records to get ‘Read’ access to the junction object records.
43
What are External Id's?
External IDs are fields that contain a unique identifier from a system outside of Salesforce.
44
What is the Unique Id Setting for on an external Id field?
External IDs are often created with the ‘Unique ID’ setting enabled so that External ID values are unique to each record inside Salesforce.
45
How many external Ids can be created on an object?
25
46
What are the valid field types for external Ids?
Text, email, number, auto-number.
47
Are External Ids Searchable?
Yes
48
Are External Ids Indexed?
Yes
49
What does an external lookup allow?
External lookup allows linking a child standard, custom or external object with a parent external object.
50
When would you use a lookup relationship?
When you need to effectively allow referencing data outside of the Salesforce organization.
51
The standard External ID field on the parent external object is matched against the values of the child’s external lookup relationship field. True or False?
True
52
What does an Indirect Lookup Allow?
Indirect lookup allows linking a child external object with a parent standard or custom object.
53
In an Indirect Lookup Relationship, how do we match and associate records?
A External Column Name and a unique External Id field are used for matching and associating the records.
54
How can we define a hierarchical relationship?
A hierarchical relationship can be defined on the User object to allow relating one user to another.
55
Creating a custom hierarchical relationship field is only allowed on the User object. True or False?
True
56
What are custom settings?
Custom settings enable application developers to create custom sets of data for an organization, profile, or specific user.
57
Can custom settings being queried?
Custom settings can be queried just like a custom object.
58
Where can Custom Settings be accessed?
Custom settings can be accessed via custom setting methods or using $Setup variable.
59
A custom object or field that is referenced elsewhere can still be deleted? True or False?
False
60
Schema relationships use to refer to child-to-parent relationships over multiple levels.
Dot Notation
61
A is used to retrieve child records in a parent-to-child relationship.
Subquery
62
The data type of a custom field that is being referenced in Apex code or a Visualforce page cannot be changed. True or False?
True
63
What tools can be used to create and access the data model in Salesforce?
Object Manager and Schema Builder can be used to create and access a data model. Apex can also be used to access it.
64
Where can you Gain a comprehensive view of the permission sets, permission set groups, and profiles that grant access to an object, and the level of access granted.
In Object Access from an Objects manager view.
65
What is Schema Builder?
Schema Builder is a tool that can be used for creating and viewing the data model or customizing it according to requirements.
66
What viewing ability to does the schema builder provide?
It provides the ability to view the relationships and fields that are available for each object in Salesforce.
67
What elements can be added in schema builder?
Custom objects, master-detail relationships, lookup relationships, and custom fields except Geolocation can be added.
68
What is a limitation to adding custom fields via the schema builder?
Custom fields are not added automatically to page layouts. Custom field permissions are set to visible and editable for internal profiles only.
69
Can elements be hidden in the Schema Builder?
Yes, Objects and relationships that appear in the Schema Builder can be hidden to improve performance, but it is not possible to hide any fields.
70
What option can be used to manage permissions of a field in schema builder?
The ‘Manage Field Permissions’ option can be used to manage the permissions of a custom field for all standard and custom profiles.
71
How to programmatically access the metadata of an sObject?
can be accessed using tokens or the describeSObjects Schema method.
72
Two data structures and a Schema method are used for accessing sObject and field describe information in Apex. What are their names?
The two data structures are Tokens and Describe Result. The Schema Method is called describeSObjects.
73
What is a token?
A token is a reference to an sObject or field and used to identify the sObject or field in scenarios where they are only determined during runtime. A token can be used to describe sObjects and fields.
74
What method can be used to access the token for an object?
getSObjectType
75
What method can be used to access the token for a field?
getSObjectField
76
What member variable can be used to get the token for an sObject type such as account?
sObjectType
77
What method is used to return the describe result for the token?
getDescribe
78
The token for an sObject or field can be retrieved by accessing what two items?
- The Static member variable name - A method
79
What method can be used to describe sObjects?
Schema.describeSObjects
80
The describeSObjects Schema method can be called and passed one or more sObject type names. True or False?
True
81
An objects of what class can be used to store the result of the obtained describe information?
DescribeSObjectResult
82
What two Apex classes are available to describe sObjects and fields.
DescribeSObjectResult and DescribeFieldResult
83
The Describe Result of an sObject can be accessed using the or the variable.
getDescribe method or the sObjectType
84
A number of important classes are available in the namespace for accessing metadata information
Schema
85
Describe the Schema.DescribeSObjectResult class
This class provides methods for describing sObjects
86
Describe the Schema.DescribeFieldResult class
This class provides methods for describing sObjectfields. To determine the SObjectType of the sObject, the getSObjectType method can be used
87
Describe the Schema.DescribeTabSetResult class
This class provides methods for obtaining metadata information about a standard or custom app.
88
Describe the Schema.DescribeTabResult class
This class provides methods for obtaining metadata information about a tab in a standard or custom app
89
Describe the Schema.RecordTypeInfo class
This class provides methods for obtaining metadata information about record types of an object
90
Describe the Schema.SObjectType class
An object of this class is returned from the field describe result using the getReferenceTo() method, or from the sObject describe result using the getSObjectType() method.
91
Describe the Schema.SObjectField class
An object of this class is returned from the field describe result using the getController() and getSObjectField() methods.
92
The class has certain static methods for obtaining schema describe information.
Schema
93
Describe the Schema.getGlobalDescribe() method
Returns a map of all sObject names and tokens for standard and custom objects.
94
Describe the Schema.describeSObjects(sObjectTypes) method
Retrieves metadata about an individual sObject or an array of sObjects.
95
Describe the Schema.describeTabs() method
Retrieves metadata about the standard and custom apps available to the running user.
96
Describe the Schema.describeDataCategoryGroups(sObjectNames) method
Returns a list of category groups related to the specified sObjects.
97
Describe the Schema.groupStructures(pairs) method
Returns data category structure for one or more category groups and objects.
98
The class has instance methods for describing sObjects.
DescribeSObjectResult
99
Describe the DescribeSObjectResult.getName() method
Returns the name of the object used in Apex.
100
Describe the DescribeSObjectResult.getLabel() method
Returns the text label of the object, which may or may not match the object’s name.
101
Describe the DescribeSObjectResult.getRecordTypeInfos() method
Returns a list of record types supported by the object.
102
Describe the DescribeSObjectResult.getRecordTypeInfosByDeveloperName() method
Returns a map of developer names and associated record types.
103
Describe the DescribeSObjectResult.getSObjectType() method
Returns the Schema.SObjectType object for the sObject.
104
The DescribeSObjectResult class also has instance methods for checking the current user’s ?
object permissions.
105
Describe the DescribeSObjectResult.isAccessible() method
Checks whether the current user has read access to the object.
106
Describe the DescribeSObjectResult.isCreateable() method
Checks whether the object can be created by the current user
107
Describe the DescribeSObjectResult.isDeletable() method
Checks if the current user can delete a record of the object.
108
Describe the DescribeSObjectResult.isUpdateable() method
Checks whether the current user can update a record of the object
109
Describe the DescribeSObjectResult.isSearchable() method
Checks whether records of the object can be searched by the current user.
110
Describe the DescribeSObjectResult.isUndeletable() method
Checks whether the object can be undeleted by the current user.
111
The class has instance methods for describing sObject fields.
DescribeFieldResult
112
Describe the DescribeFieldResult.getName() method
Returns the fieldname used in Apex.
113
Describe the DescribeFieldResult.getName() method
Returns the text label of the field.
114
Describe the DescribeFieldResult.getPicklistValues() method
Returns a list of PicklistEntry objects for a picklist field
115
Describe the DescribeFieldResult.getDefaultValue() method
Returns the default value specified for a field
116
Describe the DescribeFieldResult.getDigits() method
Returns the maximum number of digits specified for a field.
117
Describe the DescribeFieldResult. GetSObjectField() method
Returns the token for a field.
118
The class has instance methods for obtaining metadata information about a standard or custom app in Salesforce.
DescribeTabSetResult
119
Describe the DescribeTabSetResult.getLabel() method
Returns the display label for a standard or custom app.
120
Describe the DescribeTabSetResult.getTabs() method
Returns the displayed tabs for a standard or custom app.
121
Describe the DescribeTabSetResult.getLogoUrl() method
Returns the URL to the logo image associated with an app
122
Describe the DescribeTabSetResult.getDescription() method
Returns the display description for a standard or custom app.
123
The class has instance methods for obtaining metadata information for a tab in a standard or custom app in Salesforce.
DescribeTabResult
124
Describe the DescribeTabResult.getLabel() method
Returns the display label of a tab.
125
Describe the DescribeTabResult.getSObjectName() method
Returns the name of the sObject that is primarily displayed on a tab
126
Describe the DescribeTabResult.getUrl() method
Returns the URL for viewing the tab
127
Describe the DescribeTabResult.getIcons() method
Returns a list of metadata for the icons associated with a tab
128
The class has instance methods for accessing record type information for an sObject with associated record types.
RecordTypeInfo
129
Describe the RecordTypeInfo.getDeveloperName() method
Returns the developer name for a record type.
130
Describe the RecordTypeInfo.getName() method
Returns the label of the record type in the Salesforce user interface.
131
Describe the RecordTypeInfo.getRecordTypeId() method
Returns the ID of the record type
132
Describe the RecordTypeInfo.isActive() method
Returns true if the record type is active
133
Describe the RecordTypeInfo.isMaster() method
Returns true if the record type is the master
134
The class has instance methods to return the describe sObject result for a field and construct a new sObject.
SObjectType
135
Describe the SObjectType.getDescribe() method
Returns the describe sObject result for a field.
136
Describe the SObjectType.newSObject() method
Constructs a new sObject of a certain type
137
Describe the SObjectType.newSObject(Id) method
Constructs a new sObject of a certain type with the specified ID.
138
Describe the SObjectType.newSObject(RecordTypeId, loadDefaults) method
Constructs a new sObject of the specified record type ID with default custom field values.
139
The class has instance methods to return the describe field result for a field.
SObjectField
140
Describe the SObjectField.getDescribe() method
Returns the describe field result for a field.
141
Describe the SObjectField.getDescribe(options) method
Returns the describe field result for a field or all the describe field results for an object.
142
What is a platform event?
Platform events are used to deliver near real-time notifications in the Salesforce platform or in an external application.
143
What do platform event API names end with?
__e
144
Do platform events support field level security?
No
145
When do events expire?
72hrs
146
Can event messages be queried using SOQL or SOSL?
No
147
Can event messages be view in the Salesforce UI?
No
148
A Platform event makes use of the event-driven architecture which consists of these three parts?
Event Producer Event Consumer Channel
149
What is an event?
An event is any meaningful change in a business process. For example, a user changes the stage of an opportunity to ‘Closed Won’.
150
A needs to be defined before event messages can be published. A custom platform event is an sObject and defined like a custom object.
platform event
151
Where can one create Platform events?
By navigating to Platform Events in Setup.
152
What is the default publish behavior of a platform event?
'Publish Immediately'
153
What is another option for platform event publish behavior?
'Publish After Commit'
154
What field types are supported by platform events?
the following field types are supported: Checkbox, Date, Date/Time, Number, Text, and Text Area (Long).
155
Platform event messages can be published from Salesforce by what?
flows, processes, or Apex.
156
It is possible to subscribe to and receive platform events in Salesforce using what?
flows, processes, Apex triggers, and custom Lightning components.
157
provide an auto-subscription mechanism for events?
Flows, processes, and Apex triggers
158
An external app can use any Salesforce to publish event messages,
API