Legacy Dev Forum Posts

 View Only

Sign Up

Convert colection number a number

  • 1.  Convert colection number a number

    Posted 06-05-2025 19:19

    kike | 2022-09-28 13:33:07 UTC | #1

    Hello,

    I have made a data action from the aggreates/query api and when returning the nOffered field which is an array, I need in architect to transform that collection from number to number, is this possible?


    Jerome.Saint-Marc | 2022-09-29 07:07:54 UTC | #2

    Hello,

    You can use the Sum function (in an Expression) -> Sum(Flow.MyIntegerCollection) where Flow.MyIntegerCollection is the variable (Collection of Integers) that you use as the output of your data action.

    I would recommend to raise such questions on the Genesys Cloud CX Community forum. The Developer Forum is meant for questions on API & SDK.

    Regards,


    system | 2022-10-30 07:08:34 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 16490