<?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 Token as variable to use in second REST connector in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Token-as-variable-to-use-in-second-REST-connector/m-p/1998681#M11509</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have connected Act-On and Qlik via the RESt connector. First I get a token through the POST method. This token changes every hour and needs to be used in a REST connector with the GET method. I can enter the token hardcoded in the GET method. But I want to use it as a variable, so I don't have to change it every time. I have created the variable $actonToken. I found a case in the community (&lt;A href="https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connector-with-automatic-date-update/m-p/1411089#M3062" target="_blank"&gt;https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connector-with-automatic-date-update/m-p/1411089#M3062&lt;/A&gt;), but can't get it to work for me. Can someone help me out with this?&lt;/P&gt;
&lt;P&gt;-----&lt;/P&gt;
&lt;P&gt;This is the input in Data Load Editor.&lt;/P&gt;
&lt;P&gt;Let vActonToken = 'Bearer $(actonToken)';&lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'REST Act-On list';&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT &lt;BR /&gt;"listId",&lt;BR /&gt;"offset",&lt;BR /&gt;"count",&lt;BR /&gt;"totalCount",&lt;BR /&gt;"emailColumn",&lt;BR /&gt;"__KEY_root",&lt;BR /&gt;(SELECT &lt;BR /&gt;"@Value",&lt;BR /&gt;"__FK_headers"&lt;BR /&gt;FROM "headers" FK "__FK_headers" ArrayValueAlias "@Value"),&lt;BR /&gt;(SELECT &lt;BR /&gt;"__KEY_data",&lt;BR /&gt;"__FK_data",&lt;BR /&gt;(SELECT &lt;BR /&gt;"@Value" AS "@Value_u0",&lt;BR /&gt;"__FK_data_u0"&lt;BR /&gt;FROM "data" FK "__FK_data_u0" ArrayValueAlias "@Value_u0")&lt;BR /&gt;FROM "data" PK "__KEY_data" FK "__FK_data")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;BR /&gt;WITH CONNECTION (&lt;BR /&gt;QUERY"Authorization" $(vActonToken));&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 15:28:15 GMT</pubDate>
    <dc:creator>CarolinedeVos</dc:creator>
    <dc:date>2022-10-31T15:28:15Z</dc:date>
    <item>
      <title>Token as variable to use in second REST connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Token-as-variable-to-use-in-second-REST-connector/m-p/1998681#M11509</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have connected Act-On and Qlik via the RESt connector. First I get a token through the POST method. This token changes every hour and needs to be used in a REST connector with the GET method. I can enter the token hardcoded in the GET method. But I want to use it as a variable, so I don't have to change it every time. I have created the variable $actonToken. I found a case in the community (&lt;A href="https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connector-with-automatic-date-update/m-p/1411089#M3062" target="_blank"&gt;https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connector-with-automatic-date-update/m-p/1411089#M3062&lt;/A&gt;), but can't get it to work for me. Can someone help me out with this?&lt;/P&gt;
&lt;P&gt;-----&lt;/P&gt;
&lt;P&gt;This is the input in Data Load Editor.&lt;/P&gt;
&lt;P&gt;Let vActonToken = 'Bearer $(actonToken)';&lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'REST Act-On list';&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT &lt;BR /&gt;"listId",&lt;BR /&gt;"offset",&lt;BR /&gt;"count",&lt;BR /&gt;"totalCount",&lt;BR /&gt;"emailColumn",&lt;BR /&gt;"__KEY_root",&lt;BR /&gt;(SELECT &lt;BR /&gt;"@Value",&lt;BR /&gt;"__FK_headers"&lt;BR /&gt;FROM "headers" FK "__FK_headers" ArrayValueAlias "@Value"),&lt;BR /&gt;(SELECT &lt;BR /&gt;"__KEY_data",&lt;BR /&gt;"__FK_data",&lt;BR /&gt;(SELECT &lt;BR /&gt;"@Value" AS "@Value_u0",&lt;BR /&gt;"__FK_data_u0"&lt;BR /&gt;FROM "data" FK "__FK_data_u0" ArrayValueAlias "@Value_u0")&lt;BR /&gt;FROM "data" PK "__KEY_data" FK "__FK_data")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;BR /&gt;WITH CONNECTION (&lt;BR /&gt;QUERY"Authorization" $(vActonToken));&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 15:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Token-as-variable-to-use-in-second-REST-connector/m-p/1998681#M11509</guid>
      <dc:creator>CarolinedeVos</dc:creator>
      <dc:date>2022-10-31T15:28:15Z</dc:date>
    </item>
  </channel>
</rss>

