Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

moleroalonso
New Contributor II

Create macro to retrive barcharts in APP

Hi, i want create a macro to retrive all barcharts in my APP. I've modified "List Sheet" macro but something is wrong because the response is empty.

Thank you!

Macro:

[

    {

        "name": "BARCHARLIST",

        "method": "CreateSessionObject",

        "handle": "${dochandle}",

        "params": [

            {

                "qInfo": {

                    "qType": "BarchartList"

                },

                "qAppObjectListDef": {

                    "qType": "barchart",

                    "qData": {

                        "title": "/qMetaDef/title"

                    }

                }

            }

        ]

    },

    {

        "method": "GetLayout",

        "handle": "${BARCHARLIST.result.qReturn.qHandle}",

        "params": []

    }

]

Response:

{

    "jsonrpc": "2.0",

    "id": 49,

    "result": {

        "qLayout": {

            "qInfo": {

                "qId": "be57b63d-2c17-4183-b4b4-8907b48c150e",

                "qType": "BarchartList"

            },

            "qSelectionInfo": {},

            "qAppObjectList": {

                "qItems": []

            }

        }

    }

}