I have an IFTTT applet that will update cell C65 in my google sheet. I'd like that sheet to run a function submitData() whenever cell C65 is changed. As many know, however, the onEdit and onChange functions do not trigger from IFTTT actions, only from manual inputs.
I've learned this from searching for answers, and nobody seems to be able to explain a workaround. The strangest thing here is that when I first put it together today, it actually worked perfectly. I then swapped google accounts and made other changes that didn't relate to the code or IFTTT applet and all of a sudden it stopped working entirely, even when switching back to the correct google account.
This is the onEdit code that works for screen inputs but not when my IFTTT enters a value into the cell:
function onEdit(e){
var cellAddress,cellAddressToTestFor;
cellAddressToTestFor = 'C65';
// Get cell edited - If it's C65 then do something
cellAddress = e.range.getA1Notation();
Logger.log('cellAddress: ' + cellAddress);
if (cellAddress === cellAddressToTestFor) {
//To Do - Code here if cell edited is correct
submitData();
};
}
Is there any way to get the IFTTT event to trigger my submitData function?
onChange functions do not trigger from IFTTT actions
, can I ask you about the method that you have tried the OnChange event trigger? – TanaikeonChange()
is not the simple trigger. So can you use the OnChange event trigger as the installable trigger and test it again? Ref – Tanaike