RecordType

Represents a record type.

Supported Calls

create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

Special Access Rules

Customer Portal users can't access this object.

Fields

Field Details
BusinessProcessId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Required for Opportunity and Lead record types in API version 17.0 and later. ID of an associated BusinessProcess.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A description of this record. Limit: 255 characters.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The unique name of the object in the API. This name can contain only underscores and alphanumeric characters, and must be unique in your organization. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. In managed packages, this field prevents naming conflicts on package installations. With this field, a developer can change the object’s name in a managed package and the changes are reflected in a subscriber’s organization. Label is Record Type Name.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this record is active (true) or not (false). Only active record types can be applied to records. Label is Active.
IsPersonType
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether this record has been designated as a person account (true) or not (false). Visible only if the organization has the person account feature enabled.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Label of the record type in the user interface. Limit: 80 characters. Label is Record Type Label.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix__componentName notation.

The namespace prefix can have one of the following values:

  • In Developer Edition organizations, the namespace prefix is set to the namespace prefix of the organization for all objects that support it. There is an exception if an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This is the namespace prefix of the Developer Edition organization of the package developer.
  • In organizations that are not Developer Edition organizations, NamespacePrefix is only set for objects that are part of an installed managed package. There is no namespace prefix for all other objects.

This field can’t be accessed unless the logged-in user has the “Customize Application” permission.

SobjectType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Object to which this record type applies, including custom objects.

Usage

Use this object to offer different BusinessProcess records and subsets of picklist values to different users based on their Profile. Your client application can describe or query RecordType records.

The following objects have a RecordTypeId field:
  • Account
  • Campaign
  • CampaignMember
  • Case
  • Contact
  • Contract
  • Lead
  • Opportunity
  • QuickText
  • Solution
  • Custom objects
Client applications can create or update values in RecordTypeId on these objects, specifying a valid record type ID associated with these objects.
Note
You can’t create or update the RecordTypeId field on the CampaignMember records. Set the CampaignMember record type using the CampaignMemberRecordTypeId field on Campaign.
A client application can retrieve the list of valid record type IDs for a given object by querying the RecordType.
© Copyright 2000–2014 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.