1
Answer

In a Power Automate array Group By on 1 column and concatenate text in

I have below Array in Power Automate: 

{

    "body": {

        "name": "vAnswersArray",

        "type": "Array",

        "value": [

            {

                "Index": 0,

                "Title": "AC-01",

                "Answer": "test ac01 a"

            },

            {

                "Index": 1,

                "Title": "AC-02",

                "Answer": "test ac02 a"

            },

            {

                "Index": 2,

                "Title": "AC-03",

                "Answer": "test ac03 a"

            },

            {

                "Index": 3,

                "Title": "AC-04",

                "Answer": "test ac04 a"

            },

            {

                "Index": 4,

                "Title": "AC-01",

                "Answer": "test ac01 b"

            },

            {

                "Index": 5,

                "Title": "AC-03",

                "Answer": "test ac03 b"

            }

        ]

    }

}

My question is, I want to Group by on Title column and concatenate text in Answer column, so how to get below output:

"value": [

            {

                "Index": 0,

                "Title": "AC-01",

                "Answer": "test ac01 a \n test ac01 b"

            },

            {

                "Index": 1,

                "Title": "AC-02",

                "Answer": "test ac02 a"

            },

            {

                "Index": 2,

                "Title": "AC-03",

                "Answer": "test ac03 a \n test ac03 b"

            },

            {

                "Index": 3,

                "Title": "AC-04",

                "Answer": "test ac04 a"

            }

        ]

Index column need not come in output. I appreciate all answers, Thanks.

Answers (1)