

# OnCaseCreate
<a name="OnCaseCreate"></a>

## Assigned queue condition
<a name="OnCaseCreate-aq-condition"></a>

**Parameters**
+ Operator - "CONTAINS\$1ANY"
+ Operands – A list of queue ids
+ ComparisonValue – "\$1.Case.Fields.assigned\$1queue"
+ Negate - false

```
{
    "Operator": "CONTAINS_ANY",
    "Operands": ["queueId"], 
    "ComparisonValue": "$.Case.Fields.assigned_queue",
    "Negate": false
}
```

## Assigned user condition
<a name="OnCaseCreate-au-condition"></a>

**Parameters**
+ Operator - "CONTAINS\$1ANY"
+ Operands – A list of queue ids
+ ComparisonValue – "\$1.Case.Fields.assigned\$1user"
+ Negate - false

```
{
    "Operator": "CONTAINS_ANY",
    "Operands": ["userId1, userId2"], 
    "ComparisonValue": "$.Case.Fields.assigned_user",
    "Negate": false
}
```

## Case reason condition
<a name="OnCaseCreate-cr-condition"></a>

**Parameters**
+ Operator - "EQUALS"
+ Operands – An array of strings in which the array length can only be 1. The value is a case reason.
+ ComparisonValue – "\$1.Case.Fields.case\$1reason"
+ Negate - true/false

```
{
    "Operator": "EQUALS",
    "Operands": ["Refund"], 
    "ComparisonValue": "$.Case.Fields.case_reason",
    "Negate": false
}
```

## Case status condition
<a name="OnCaseCreate-cs-condition"></a>

**Parameters**
+ Operator - "EQUALS"
+ Operands – An array of strings in which the array length can only be 1. The value is a case status.
+ ComparisonValue – "\$1.Case.Fields.status"
+ Negate - false

```
{
    "Operator": "EQUALS",
    "Operands": ["open"], 
    "ComparisonValue": "$.Case.Fields.status",
    "Negate": false
}
```

## Case summary condition
<a name="OnCaseCreate-csu-condition"></a>

**Parameters**
+ Operator - “CONTAINS” \$1 “EQUALS”
+ Operands – An array of strings in which the array length can only be 1. The value is a case summary.
+ ComparisonValue – "\$1.Case.Fields.summary"
+ Negate - false

```
{
    "Operator": "EQUALS",
    "Operands": ["open"], 
    "ComparisonValue": "$.Case.Fields.summary",
    "Negate": false
}
```

## Case date/time last closed condition
<a name="OnCaseCreate-cdtlc-condition"></a>

**Parameters**
+ Operator - “NumberLessOrEqualTo” \$1 “NumberGreaterOrEqualTo”
+ Operands – An array of strings in which the array length can only be 1. The value is interpreted as a numeric value.
+ ComparisonValue – "\$1.Case.Fields.last\$1closed\$1datetime"
+ Negate - false

```
{
    "Operator": "NumberLessOrEqualTo",
    "Operands": ["2023-11-11T11:11:11.111111Z"], 
    "ComparisonValue": "$.Case.Fields.last_closed_datetime",
    "Negate": false
}
```

## Case date/time updated condition
<a name="OnCaseCreate-cdtu-condition"></a>

**Parameters**
+ Operator - “NumberLessOrEqualTo” \$1 “NumberGreaterOrEqualTo”
+ Operands – An array of strings in which the array length can only be 1. The value is interpreted as a numeric value.
+ ComparisonValue – "\$1.Case.Fields.last\$1updated\$1datetime"
+ Negate - false

```
{
    "Operator": "NumberLessOrEqualTo",
    "Operands": ["2023-11-11T11:11:11.111111Z"], 
    "ComparisonValue": "$.Case.Fields.last_updated_datetime",
    "Negate": false
}
```

## Case date/time opened condition
<a name="OnCaseCreate-cdto-condition"></a>

**Parameters**
+ Operator - “NumberLessOrEqualTo” \$1 “NumberGreaterOrEqualTo”
+ Operands – An array of strings in which the array length can only be 1. The value is interpreted as a numeric value.
+ ComparisonValue – "\$1.Case.Fields.created\$1datetime"
+ Negate - true/false

```
{
    "Operator": "NumberLessOrEqualTo",
    "Operands": ["2023-11-11T11:11:11.111111Z"], 
    "ComparisonValue": "$.Case.Fields.created_datetime",
    "Negate": false
}
```

## Case reference number condition
<a name="OnCaseCreate-rn-condition"></a>

**Parameters**
+ Operator - “CONTAINS” \$1 “EQUALS”
+ Operands – An array of strings in which the array length can only be 1. The value is interpreted as a numeric value.
+ ComparisonValue – "\$1.Case.Fields.reference\$1number"
+ Negate - true

```
{
    "Operator": "CONTAINS",
    "Operands": ["11111111"], 
    "ComparisonValue": "$.Case.Fields.reference_number",
    "Negate": false
}
```

## Case customer fields condition
<a name="OnCaseCreate-cf-condition"></a>

**Parameters**
+ Operator - “CONTAINS” \$1 “EQUALS”
+ Operands – An array of strings in which the array length can only be 1.
+ ComparisonValue – "\$1.Case.Fields.custom\$1case\$1field\$1id"
+ Negate - true/false

```
{
    "Operator": "EQUALS",
    "Operands": ["vip"], 
    "ComparisonValue": "$.Case.Fields.custom_case_field_id",
    "Negate": false
}
```

## Case template condition
<a name="OnCaseCreate-ctc-condition"></a>

**Parameters**
+ Operator - “CONTAINS\$1ANY”
+ Operands – A list of template ids.
+ ComparisonValue – "\$1.Case.TemplateId"
+ Negate - true/false

```
{
"Operator": "CONTAINS_ANY",
"Operands": ["templateId"],
"ComparisonValue": "$.Case.TemplateId",
"Negate": false
}
```