SarthakSubudhi1
8 years agoQrew Trainee
Multiple records are getting added instead of getting updated using API_ImportforCSV
I have a parent and a child table. It is a one to many relationship. I am trying to update multiple records in the child table when I check a checkbox field in the parent table. So, I am trying to use the API_ImportfromCSV in the webhook created in the parent table to fire off when the checkbox is checked in parent table. But, instead of updating records, it is adding new records. Where could I be going wrong?
Following is the API:
<qdbapi><usertoken>b3id8d_bmdk_bcz9fgsdgttp2scecrrmrbaj4x7q</usertoken>
<apptoken>dwnt9wipc3cvfcg6nvd3ba97ps4</apptoken>
<records_csv>
<![CDATA[
%RepeatOn%
[Payment ID#],[Payment for Client - Record ID#],[Customer - Record ID#],[Payment from Customer]
%RepeatOff%
]]>
</records_csv>
<clist>41.48.46.62</clist>
<msInUTC>1</msInUTC>
<decimalPercent>0</decimalPercent>
</qdbapi>
Following is the API:
<qdbapi><usertoken>b3id8d_bmdk_bcz9fgsdgttp2scecrrmrbaj4x7q</usertoken>
<apptoken>dwnt9wipc3cvfcg6nvd3ba97ps4</apptoken>
<records_csv>
<![CDATA[
%RepeatOn%
[Payment ID#],[Payment for Client - Record ID#],[Customer - Record ID#],[Payment from Customer]
%RepeatOff%
]]>
</records_csv>
<clist>41.48.46.62</clist>
<msInUTC>1</msInUTC>
<decimalPercent>0</decimalPercent>
</qdbapi>