<?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 Re: How to create a new column as AUDIT_TYPE in Qlik replicate in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081684#M6361</link>
    <description>&lt;P&gt;we have a good article forum below :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Get-First-Value-on-New-Columns-using-Expression-Builder/td-p/1702715" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Replicate/Get-First-Value-on-New-Columns-using-Expression-Builder/td-p/1702715&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Not-to-perform-cdc-on-a-column/td-p/2063364" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Replicate/Not-to-perform-cdc-on-a-column/td-p/2063364&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 13:05:16 GMT</pubDate>
    <dc:creator>Steve_Nguyen</dc:creator>
    <dc:date>2023-06-08T13:05:16Z</dc:date>
    <item>
      <title>How to create a new column as AUDIT_TYPE in Qlik replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081612#M6356</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I need to create a new column as AUDIT_TYPE in that whatever the update data from source should show as UPDATE same for INSERT as well, as below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AUDIT_TYPE&lt;/P&gt;
&lt;P&gt;INSERT&lt;/P&gt;
&lt;P&gt;UPDATE&lt;/P&gt;
&lt;P&gt;INSERT&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 11:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081612#M6356</guid>
      <dc:creator>TTH1</dc:creator>
      <dc:date>2023-06-08T11:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column as AUDIT_TYPE in Qlik replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081631#M6357</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/232828"&gt;@TTH1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik community.&lt;/P&gt;
&lt;P&gt;If I have understood your question correctly , you are trying to add a column which should track which operation is performed during replication Insert/update/delete , if that is the case , then please refer to the below user guide&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/replicate/May2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_headColumns.htm#anchor-7" target="_blank"&gt;https://help.qlik.com/en-US/replicate/May2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_headColumns.htm#anchor-7&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can use the header "AR_H_OPERATION"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Value in Change Processing&lt;/STRONG&gt;&lt;BR /&gt;Can be one of the following: INSERT, UPDATE, or DELETE.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Value in Full Load&lt;/STRONG&gt;&lt;BR /&gt;INSERT&lt;/P&gt;
&lt;P&gt;You can add a new column thru transform and set the value to reflect from "AR_H_OPERATION"&lt;/P&gt;
&lt;P&gt;Please refer below user guide for more information&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/replicate/May2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_useTransTable.htm" target="_blank"&gt;https://help.qlik.com/en-US/replicate/May2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_useTransTable.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope the above answers your question&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 11:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081631#M6357</guid>
      <dc:creator>Arun_Arasu</dc:creator>
      <dc:date>2023-06-08T11:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column as AUDIT_TYPE in Qlik replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081680#M6360</link>
      <description>&lt;P&gt;Case&lt;/P&gt;
&lt;P&gt;then $AR_H_OPERATION='INSERT' then&lt;/P&gt;
&lt;P&gt;VARCHAR(10) 'INSERT'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will this works how to do it for Update logic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081680#M6360</guid>
      <dc:creator>TTH1</dc:creator>
      <dc:date>2023-06-08T12:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column as AUDIT_TYPE in Qlik replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081684#M6361</link>
      <description>&lt;P&gt;we have a good article forum below :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Get-First-Value-on-New-Columns-using-Expression-Builder/td-p/1702715" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Replicate/Get-First-Value-on-New-Columns-using-Expression-Builder/td-p/1702715&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Not-to-perform-cdc-on-a-column/td-p/2063364" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Replicate/Not-to-perform-cdc-on-a-column/td-p/2063364&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 13:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081684#M6361</guid>
      <dc:creator>Steve_Nguyen</dc:creator>
      <dc:date>2023-06-08T13:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column as AUDIT_TYPE in Qlik replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081687#M6362</link>
      <description>&lt;P&gt;Do I understand it correctly and you desire to use a (global?) table transformation add a column named 'AUDIT_TYPE' and that column should indicate on target how the row data was obtained - through UPDATE or INSERT. Correct?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You'll likely to want to add a&amp;nbsp; USER and DATE-TIME column as well.&lt;/LI&gt;
&lt;LI&gt;You may want to investigate whether the business doesn't really want CHANGE TABLE rows for full audit of the life of a target row, retaining the insert after update(s) and even deleted&lt;/LI&gt;
&lt;LI&gt;You might was to also look at audit tables ( documentation: C.1 Using an Audit table ) but those are probably over the top, very few folks end up using those.&lt;/LI&gt;
&lt;LI&gt;If you also want to audit the DELETE operation then you can use the &lt;STRONG&gt;operation_indicator&lt;/STRONG&gt; function which allows you to specify any arbitrary value for insert/update/delete and make a delete become a 'soft' delete = update + flag.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;EM&gt;Case then $AR_H_OPERATION='INSERT' then VARCHAR(10) 'INSERT'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;This allows you to pick any value to represent 'INSERT' but why not just assign $AR_H_OPERATION ? It will do the Insert and Update if that actual wording is as desired which appears to be the case from the original question.&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 13:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-create-a-new-column-as-AUDIT-TYPE-in-Qlik-replicate/m-p/2081687#M6362</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-06-08T13:08:16Z</dc:date>
    </item>
  </channel>
</rss>

