Need to understand how this rule is defined in the attachment. Does the item[ ]

Need to understand how this rule is defined in the attachment. Does the item[ ] refer to ri!item or is it some array object?

OriginalPostID-146357

OriginalPostID-146357

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    The answer to your original question, I think, is Yes - the first instance of "item" should actually be called as "ri!item" in the rule. But i think it'll work without that, confusion aside.

    The simplest way to demonstrate this rule would be to call it from another expression rule. Since ri!item is of "Any Type" type, you can't actually force in an array when you use the "Test" functionality in the expression editor. But if you create a new / unsaved expression, you can pass in an array. Such as:
    rule!CASE_APP_randomItemFromArray(
    { "first", "second", "third", "fourth" }
    )
Reply
  • 0
    Certified Lead Developer
    The answer to your original question, I think, is Yes - the first instance of "item" should actually be called as "ri!item" in the rule. But i think it'll work without that, confusion aside.

    The simplest way to demonstrate this rule would be to call it from another expression rule. Since ri!item is of "Any Type" type, you can't actually force in an array when you use the "Test" functionality in the expression editor. But if you create a new / unsaved expression, you can pass in an array. Such as:
    rule!CASE_APP_randomItemFromArray(
    { "first", "second", "third", "fourth" }
    )
Children
No Data