Newer Version Available
AutoResponseRules
1<types>
2 <members>*</members>
3 <name>AutoResponseRules</name>
4 </types>1<types>
2 <members>Case</members>
3 <name>AutoResponseRules</name>
4 </types>1<types>
2 <members>Case.samplerule</members>
3 <members>Case.newrule</members>
4 <name>AutoResponseRule</name>
5 </types>File Suffix and Directory Location
AutoResponseRules for an object have the suffix .autoResponseRules and are stored in the autoResponseRules folder. For example, all Case auto-response rules are stored in the Case.autoResponseRules file.
Version
AutoResponseRules components are available in API version 27.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| autoresponseRule | AutoResponseRule[] | Represents the definitions of the named auto-response rules. |
AutoResponseRule
Represents whether a rule is active or not and the order in which the entry is processed in the rule.
| Field Name | Field Type | Description |
|---|---|---|
| active | boolean | Indicates whether the autoresponse rule is active (true) or not (false). |
| fullname | string | Inherited from Metadata,
this field is not defined in the WSDL for this metadata type. It
must be specified when creating, updating, or deleting. See
createMetadata() to see an example of this field specified for a
call. This value cannot be null. |
| ruleEntry | RuleEntry[] | Represents the type and description for the auto-response rule. |
RuleEntry
Represents the fields used by the rule.
| Field Name | Field Type | Description |
|---|---|---|
| booleanFilter | string | Advanced filter conditions that were specified for the rule. |
| criteriaItems | FilterItem[] | The items in the list that define the assignment criteria. |
| formula | string | The validation formula. |
| replyToEmail | string | The email address that appears in the reply-to header. |
| senderEmail | string | The email address of the person or queue sending the email notification. |
| senderName | string | The name of the person or queue sending the email notification. |
| template | string | Specifies the template to use for the email that is automatically
sent to the designated recipient. Lightning email templates aren’t packageable. We recommend using a Classic email template. |
Declarative Metadata Sample Definition
The following is an example AutoResponseRules component:
1<AutoResponseRules xmlns="http://soap.sforce.com/2006/04/metadata">
2 <autoResponseRule>
3 <fullName>ajbdeploytest2</fullName>
4 <active>false</active>
5 <ruleEntry>
6 <criteriaItems>
7 <field>Case.Description</field>
8 <operation>contains</operation>
9 <value>testing</value>
10 </criteriaItems>
11 <senderEmail>test@test.org</senderEmail>
12 <senderName>tester name j</senderName>
13 <replyToEmail>test@@test.org</replyToEmail>
14 <template>emailtemplate</template>
15 </ruleEntry>
16 </autoResponseRule>
17</AutoResponseRules>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.