Google-sheets – Importhtml data alert on new row updated

google sheetsgoogle-apps-scriptimporthtml

I am fetching data from ndtv profit, I would like to get an alert for any new row updated in the table. I have 'send mail' functions. which the event funtion needs to use to get the data on increase row from importhtml.

enter image description here

Best Answer

I got the solution.

var inc1=IoI.getRange(13,9).getValue();----------- Got row count cell
  var inc2=IoI.getRange(14,9).getValue(); 

if(inc1!==inc2)

  {
 IOincincsendMail();
    IoI.getRange("i14").setValue(inc1)
  }