<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create nested JSON from Qliksense straight table to Marketing platform in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Create-nested-JSON-from-Qliksense-straight-table-to-Marketing/m-p/1850452#M125</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I need to send data from Qliksense prepared table to marketing platform. One by one request is easy to do by adding "Get Straight Table Data" and "Call URL" blocks. Everything works like expected.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krishelis_1-1634881107374.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64997i7341576D32423173/image-size/medium?v=v2&amp;amp;px=400" role="button" title="krishelis_1-1634881107374.png" alt="krishelis_1-1634881107374.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But to improve process platform support batch API request with 1000 person limit per request.&lt;/P&gt;
&lt;P&gt;Body has to be prepared in such a format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "people": [
    {
      "firstName": "John",
      "lastName": "Johnzzz",
      "customAttributes": {
		"first_payment_date": "2021-01-01",
		"random_attribute": "aaaa"
      },
      "contactInformation": {
        "phone": [
          {
            "number": "46546546"
          }
        ],
        "email": [
          {
            "address": "aaa@bbb.com"
          }
        ]
      }
    },
    {
      "firstName": "Brut",
      "lastName": "Brutzzz",
      "customAttributes": {
		"first_payment_date": "2021-04-20",
		"random_attribute": "cccc"
      },
      "contactInformation": {
        "phone": [
          {
            "number": "46546464645"
          }
        ],
        "email": [
          {
            "address": "ccc@bb.com"
          }
        ]
      }
    }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone help me to prepare Automation rules/blocks so the body is in needed format?&lt;/P&gt;
&lt;P&gt;I have simple table in qlik load script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;persons:
LOAD * INLINE [
    firstName, lastName, first_payment_date, random_attribute, address, phone
    John, Johnzzz, 2021-01-01, aaaa, aaa@bbb.com, 231231321
    Brut, Brutzzz, 2021-04-20, cccc, ccc@bb.com, 465456465465
    Ilze, Ilzess, 2021-02-01, bbbb, bb@aa.com, 54654658789
    Dudu, Dududss, 2021-10-01, abc, ddd@ggg.com, 798789789
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another question, is it possible to store response result (output) from rest api ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 05:56:46 GMT</pubDate>
    <dc:creator>krishelis</dc:creator>
    <dc:date>2021-10-22T05:56:46Z</dc:date>
    <item>
      <title>Create nested JSON from Qliksense straight table to Marketing platform</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Create-nested-JSON-from-Qliksense-straight-table-to-Marketing/m-p/1850452#M125</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I need to send data from Qliksense prepared table to marketing platform. One by one request is easy to do by adding "Get Straight Table Data" and "Call URL" blocks. Everything works like expected.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krishelis_1-1634881107374.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64997i7341576D32423173/image-size/medium?v=v2&amp;amp;px=400" role="button" title="krishelis_1-1634881107374.png" alt="krishelis_1-1634881107374.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But to improve process platform support batch API request with 1000 person limit per request.&lt;/P&gt;
&lt;P&gt;Body has to be prepared in such a format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "people": [
    {
      "firstName": "John",
      "lastName": "Johnzzz",
      "customAttributes": {
		"first_payment_date": "2021-01-01",
		"random_attribute": "aaaa"
      },
      "contactInformation": {
        "phone": [
          {
            "number": "46546546"
          }
        ],
        "email": [
          {
            "address": "aaa@bbb.com"
          }
        ]
      }
    },
    {
      "firstName": "Brut",
      "lastName": "Brutzzz",
      "customAttributes": {
		"first_payment_date": "2021-04-20",
		"random_attribute": "cccc"
      },
      "contactInformation": {
        "phone": [
          {
            "number": "46546464645"
          }
        ],
        "email": [
          {
            "address": "ccc@bb.com"
          }
        ]
      }
    }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone help me to prepare Automation rules/blocks so the body is in needed format?&lt;/P&gt;
&lt;P&gt;I have simple table in qlik load script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;persons:
LOAD * INLINE [
    firstName, lastName, first_payment_date, random_attribute, address, phone
    John, Johnzzz, 2021-01-01, aaaa, aaa@bbb.com, 231231321
    Brut, Brutzzz, 2021-04-20, cccc, ccc@bb.com, 465456465465
    Ilze, Ilzess, 2021-02-01, bbbb, bb@aa.com, 54654658789
    Dudu, Dududss, 2021-10-01, abc, ddd@ggg.com, 798789789
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another question, is it possible to store response result (output) from rest api ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 05:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Create-nested-JSON-from-Qliksense-straight-table-to-Marketing/m-p/1850452#M125</guid>
      <dc:creator>krishelis</dc:creator>
      <dc:date>2021-10-22T05:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create nested JSON from Qliksense straight table to Marketing platform</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Create-nested-JSON-from-Qliksense-straight-table-to-Marketing/m-p/2107614#M2312</link>
      <description>&lt;P&gt;Use the the advanced "Loop batch" block to loop over the output of "Get straight table" in batches.&lt;BR /&gt;Within a batch the correct payload can be built using two variables (list and object), after this, the list can be sent to the API.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 08:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Create-nested-JSON-from-Qliksense-straight-table-to-Marketing/m-p/2107614#M2312</guid>
      <dc:creator>J_Lindberg</dc:creator>
      <dc:date>2023-08-21T08:14:10Z</dc:date>
    </item>
  </channel>
</rss>

