DescribeSObjectResult Class Flashcards

1
Q

getChildRelationships()

A

Returns a list of child relationships, which are the names of the sObjects that have a foreign key to the sObject being described.

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

getHasSubtypes()

A

Indicates whether the object has subtypes. The Account object, which has subtype PersonAccount, is the only object that will return true.

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

getKeyPrefix()

A

Returns the three-character prefix code for the object. Record IDs are prefixed with three-character codes that specify the type of the object (for example, accounts have a prefix of 001 and opportunities have a prefix of 006).

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

getLabel()

A

Returns the object’s label, which may or may not match the object name

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

getLabelPlural()

A

Returns the object’s plural label, which may or may not match the object name.

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

getLocalName()

A

Returns the name of the object, similar to the getName method. However, if the object is part of the current namespace, the namespace portion of the name is omitted.

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

getName()

A

Returns the name of the object

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

getRecordTypeInfos()

A

Returns a list of the record types supported by this object. The current user is not required to have access to a record type to see it in this list.

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

getRecordTypeInfosByDeveloperName()

A

Returns a map that matches developer names to their associated record type. The current user is not required to have access to a record type to see it in this map.

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

getRecordTypeInfosById()

A

Returns a map that matches record IDs to their associated record types. The current user is not required to have access to a record type to see it in this map.

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

getRecordTypeInfosByName()

A

Returns a map that matches record labels to their associated record type. The current user is not required to have access to a record type to see it in this map.

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

getSobjectType()

A

Returns the Schema.SObjectType object for the sObject. You can use this to create a similar sObject.

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

isAccessible()

A

Returns true if the current user can see this object, false otherwise.

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

isCreateable()

A

Returns true if the object can be created by the current user, false otherwise

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

isCustom()

A

Returns true if the object is a custom object, false if it is a standard object.

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

isCustomSetting()

A

Returns true if the object is a custom setting, false otherwise.

17
Q

isDeletable()

A

Returns true if the object can be deleted by the current user, false otherwise.

18
Q

isFeedEnabled()

A

Returns true if Chatter feeds are enabled for the object, false otherwise. This method is only available for Apex classes and triggers saved using SalesforceAPI version 19.0 and later.

19
Q

isMergeable()

A

Returns true if the object can be merged with other objects of its type by the current user, false otherwise. true is returned for leads, contacts, and accounts.

20
Q

isMruEnabled()

A

Returns true if Most Recently Used (MRU) list functionality is enabled for the object, false otherwise.

21
Q

isQueryable()

A

Returns true if the object can be queried by the current user, false otherwise

22
Q

isSearchable()

A

Returns true if the object can be searched by the current user, false otherwise.

23
Q

isUndeletable()

A

Returns true if the object can be undeleted by the current user, false otherwise.

24
Q

isUpdateable()

A

Returns true if the object can be updated by the current user, false otherwise.