How to write an expression rule that returns multiple values?

How to write an expression rule that returns multiple values? Would you share an example?

  Discussion posts and replies are publicly visible

Parents Reply
  • That when extracting the values from the map the value won't be wrapped in a variant but will be natively of the type expected:

    {
      myInteger: 99,
      myString: "Ipsum Lorem",
      myDecimal: 3.14159,
      myBoolean: true,
      myIntegerList: {3,5,7,9}
    }.myInteger

    returns:

    whereas:

    a!map(
      myInteger: 99,
      myString: "Ipsum Lorem",
      myDecimal: 3.14159,
      myBoolean: true,
      myIntegerList: {3,5,7,9}
    ).myInteger

    returns:

    According to the feature description:

    "[this]...will help to reduce unexpected errors in your interfaces and rules. Maps will simplify your expressions and make it easier to work with other types."

Children