AppExchange logo

AssignmentRuleHeader


Specifies the assignment rule to use when creating or updating a Case or Lead. When updating an Account, specifies whether the territory assignment rules should be applied.

The AssignmentRuleHeader must be specified in the create or update call of a Case or Lead for the specified assignment rule to be applied, and it must be specified in the update call of an Account for the territory assignment rules to be applied.

API Calls

create, update

Fields

Element Name
Type
Description
assignmentRuleId
ID of a specific assignment rule to run for the Case or Lead. Can be an inactive assignment rule. The ID can be retrieved by querying the AssignmentRule object (for details, see AssignmentRule). If specified, do not specify useDefaultRule.
 
This element is ignored for accounts, because all territory assignment rules are applied.
useDefaultRule
If True for a Case or Lead, uses the default (active) assignment rule for a Case or Lead. If specified, do not specify an assignmentRuleId.
 
If True for an Account, all territory assignment rules are applied.

Sample Code

For a code example, see Lead.

See Also

create

update

AssignmentRule


© Copyright 2000-2006 salesforce.com, inc.
All rights reserved • Various trademarks held by their respective owners.
Have feedback about this page? Click the red email icon in the top right corner to contact us.