Data import Tool & doc events

Hello, data import tools does not trigger doc events which then not trigger webhooks as stated in this replay. we are looking for any solution because this feature is important to update our external ecommerce store product prices

the following github issue & PR could fix the problem but there is no activity on the PR

hello, for now i solved this issue by adding simple CSV import feature to my extenstion, if someone need it:

2 Likes

I installed it to understand CSV import may be handy from UI, so whether it will be similar to the command for CSV import or what else pros and cons, whether it supports only update records?

1 Like

Hello, here are some pros and cons which I will also note in the next update:

pros:

  • update records using python instead of SQL which means server scripts, webhooks, doc events will work

cons:

  • using client.py bulk update, does not use background job which can slow website for huge data records especially if that doc has extra hooks, server scripts, webhooks etc
  • do not support child tables data
  • column name representing doc name must be (ID), will try to fix in the next update

finally, this may not be the proper way to update csv records, this was a temporal solution for our client to update their Item Price data, But we are looking for other better solutions like custom data import app which support doc_events, maybe customized data import tool version