Skip to content

Create Case Rule

connectcases_create_case_rule R Documentation

Creates a new case rule

Description

Creates a new case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template.

Usage

connectcases_create_case_rule(domainId, name, description, rule)

Arguments

domainId

[required] Unique identifier of a Cases domain.

name

[required] Name of the case rule.

description

The description of a case rule.

rule

[required] Represents what rule type should take place, under what conditions.

Value

A list with the following syntax:

list(
  caseRuleId = "string",
  caseRuleArn = "string"
)

Request syntax

svc$create_case_rule(
  domainId = "string",
  name = "string",
  description = "string",
  rule = list(
    required = list(
      defaultValue = TRUE|FALSE,
      conditions = list(
        list(
          equalTo = list(
            operandOne = list(
              fieldId = "string"
            ),
            operandTwo = list(
              stringValue = "string",
              booleanValue = TRUE|FALSE,
              doubleValue = 123.0,
              emptyValue = list()
            ),
            result = TRUE|FALSE
          ),
          notEqualTo = list(
            operandOne = list(
              fieldId = "string"
            ),
            operandTwo = list(
              stringValue = "string",
              booleanValue = TRUE|FALSE,
              doubleValue = 123.0,
              emptyValue = list()
            ),
            result = TRUE|FALSE
          ),
          andAll = list(
            conditions = list()
          ),
          orAll = list(
            conditions = list()
          )
        )
      )
    ),
    fieldOptions = list(
      parentFieldId = "string",
      childFieldId = "string",
      parentChildFieldOptionsMappings = list(
        list(
          parentFieldOptionValue = "string",
          childFieldOptionValues = list(
            "string"
          )
        )
      )
    ),
    hidden = list(
      defaultValue = TRUE|FALSE,
      conditions = list(
        list(
          equalTo = list(
            operandOne = list(
              fieldId = "string"
            ),
            operandTwo = list(
              stringValue = "string",
              booleanValue = TRUE|FALSE,
              doubleValue = 123.0,
              emptyValue = list()
            ),
            result = TRUE|FALSE
          ),
          notEqualTo = list(
            operandOne = list(
              fieldId = "string"
            ),
            operandTwo = list(
              stringValue = "string",
              booleanValue = TRUE|FALSE,
              doubleValue = 123.0,
              emptyValue = list()
            ),
            result = TRUE|FALSE
          ),
          andAll = list(
            conditions = list()
          ),
          orAll = list(
            conditions = list()
          )
        )
      )
    )
  )
)