Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
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
AUDIT_TYPE
INSERT
UPDATE
INSERT
Hello @TTH1 ,
Thanks for reaching out to Qlik community.
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
You can use the header "AR_H_OPERATION"
Value in Change Processing
Can be one of the following: INSERT, UPDATE, or DELETE.
Value in Full Load
INSERT
You can add a new column thru transform and set the value to reflect from "AR_H_OPERATION"
Please refer below user guide for more information
Hope the above answers your question
Thanks & Regards
Arun
Case
then $AR_H_OPERATION='INSERT' then
VARCHAR(10) 'INSERT'
Will this works how to do it for Update logic
we have a good article forum below :
https://community.qlik.com/t5/Qlik-Replicate/Not-to-perform-cdc-on-a-column/td-p/2063364
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?
>> Case then $AR_H_OPERATION='INSERT' then VARCHAR(10) 'INSERT'
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.
Hein