RecordType

Represents a record type. See “Managing Record Types” in the Salesforce.com online help.

Supported Calls

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

Special Access Rules

Customer Portal users cannot access this object.

Fields

Field Field Type Field Properties Description
BusinessProcessId reference Create

Filter

Nillable

Update

Required for Opportunity and Lead record types in API version 17.0 and later. ID of an associated BusinessProcess. For information on IDs, see ID Field Type.
Description string Create

Filter

Nillable

Update

A description of this record. Limit: 255 characters.
DeveloperName string Create

Filter

Update

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 boolean Defaulted on create

Filter

Update

Indicates whether this record is active (true) or not (false). Only active record types can be applied to records. Label is Active.
IsPersonType boolean Defaulted on create

Filter

Indicates whether this record has been designated as a PersonAccount (true) or not (false). Visible only if the organization has the person account feature enabled. For more information about person accounts, see Person Account Record Types, and the Salesforce.com online help.

Name string Create

Filter

idLookup

Update

Required. Label of the record type in the Salesforce.com user interface. Limit: 80 characters. Label is Record Type Label.
NamespacePrefix string Filter

Nillable

The namespace prefix associated with this object. Each Developer Edition organization that creates a managed package has a unique namespace prefix. The limit is 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 cannot be accessed unless the logged-in user has the “Customize Application” permission.

SobjectType picklist Create

Filter

Restricted picklist

Object to which this record type applies, including custom objects.

Usage

Use this object to offer different BusinessProcesses and subsets of picklist values to different users based on their Profile. Your client application can invoke the describeSObjects() and query() calls on RecordType objects.

The following objects have a RecordTypeId field: Account, Campaign, CampaignMember, Case, Contact, Contract, Lead, Opportunity, and Solution. Also, custom objects are supported. Client applications can set this field in create() or update() calls on these objects, specifying a valid record type ID associated with these objects.
Note
You cannot create() or update() the RecordTypeId field on the CampaignMember object. Set the CampaignMember record type using the CampaignMemberRecordTypeId field on the Campaign.
A client application can retrieve the list of valid record type IDs for a given object by calling query() on the RecordType object. For more information, see RecordTypeId.
© Copyright 2000-2009 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.