Data is inserted in my spreadsheet via a post action. upon the arrival of the data. Usually targeting a row ,i want a script to be executed, however the script is executing 4 times. Tried to see whether the post action was writing the data in several delay however even when i change the onChange function to onEdit function and personally made a change to ONE cell to trigger the script manually , it is still executing 4 times.
function onChange(){
createAndSendDocument();
}