<?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 Triggering stored procedure: Qlik Replicate in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Triggering-stored-procedure-Qlik-Replicate/m-p/2470932#M12005</link>
    <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working with a prospect who has a use case around triggering stored procedures from Qlik replicate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the business case around triggering the stored procedures - We have 2 DBs as our source.&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;When a new record is inserted into the table in 2&lt;SUP&gt;nd&lt;/SUP&gt;&amp;nbsp;DB in source, in addition to replicating the inserted row to target, the custom procedure must be triggered.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;·&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;This procedure based on the values of the attributes of the record being inserted, will aggregate/accumulate the details of the inserted record into one of the table in the target. &amp;nbsp;There are about 15 tables in target and the inserted record may get aggregated to one of the 15 tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)"&gt;·&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;These tables are not part of replication from source.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;·&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;Similarly, when a row is deleted from 2&lt;SUP&gt;nd&lt;/SUP&gt;&amp;nbsp;DB in source, a different custom procedure must be triggered.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;·&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;This procedure will adjust the aggregated details in one of the 15 tables due to deletion of a record.\&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;While I understand triggering stored procedures from Replicate is not possible at the moment - Is there a way we can query the control tables from the target to understand the DML performed on the incoming records and then trigger stored procedure accordingly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;Kindly suggest any other approach. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 11:26:03 GMT</pubDate>
    <dc:creator>akaradhya</dc:creator>
    <dc:date>2024-07-16T11:26:03Z</dc:date>
    <item>
      <title>Triggering stored procedure: Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Triggering-stored-procedure-Qlik-Replicate/m-p/2470932#M12005</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working with a prospect who has a use case around triggering stored procedures from Qlik replicate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the business case around triggering the stored procedures - We have 2 DBs as our source.&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;When a new record is inserted into the table in 2&lt;SUP&gt;nd&lt;/SUP&gt;&amp;nbsp;DB in source, in addition to replicating the inserted row to target, the custom procedure must be triggered.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;·&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;This procedure based on the values of the attributes of the record being inserted, will aggregate/accumulate the details of the inserted record into one of the table in the target. &amp;nbsp;There are about 15 tables in target and the inserted record may get aggregated to one of the 15 tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)"&gt;·&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;These tables are not part of replication from source.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;·&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;Similarly, when a row is deleted from 2&lt;SUP&gt;nd&lt;/SUP&gt;&amp;nbsp;DB in source, a different custom procedure must be triggered.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;·&lt;/SPAN&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;This procedure will adjust the aggregated details in one of the 15 tables due to deletion of a record.\&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;While I understand triggering stored procedures from Replicate is not possible at the moment - Is there a way we can query the control tables from the target to understand the DML performed on the incoming records and then trigger stored procedure accordingly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-ogsc="rgb(31, 73, 125)" data-ogsb="yellow"&gt;Kindly suggest any other approach. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 11:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Triggering-stored-procedure-Qlik-Replicate/m-p/2470932#M12005</guid>
      <dc:creator>akaradhya</dc:creator>
      <dc:date>2024-07-16T11:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering stored procedure: Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Triggering-stored-procedure-Qlik-Replicate/m-p/2471040#M12013</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/168191"&gt;@akaradhya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;In my opinion, implementing complex logic in Qlik Replicate is not advisable. Instead, I suggest considering the following options:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Implement the logic and triggers in the target database tables&lt;/STRONG&gt;; or&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Utilize your own program to handle the logic for each row of data&lt;/STRONG&gt;, including both Full Load and Change Processing. This can be done using a &lt;A title="User-Defined Table Function (UDTF) " href="https://help.qlik.com/en-US/replicate/May2024/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/user_defined_transformations.htm#:~:text=the%20Expression%20Builder-,User%2Ddefined%20transformations,transformations%2C%20and%20then%20access%20them%20from%20the%20Replicate%20Expression%20Builder.,-It%20is%20also" target="_blank" rel="noopener"&gt;User-Defined Table Function (UDTF)&lt;/A&gt; as an example.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Additionally, I recommend considering a Professional Services (PS) engagement (fee-based) to help move the case forward if necessary.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 23:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Triggering-stored-procedure-Qlik-Replicate/m-p/2471040#M12013</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-07-16T23:37:57Z</dc:date>
    </item>
  </channel>
</rss>

