I have an API function to extract data from Amazon, I need to have 'fetch' & 'get' report function separately to achieve action for
- request fetching report from Amazon, and
- get report from Amazon, and the request action take about 2 mins for Amazon to finish the fetching request and allow for getting the report, so in the script I have set
script.newtriggerafter 2 minutes.
function fetchReportMarketListTrig() {
fetchReportMarketList(true);
ScriptApp.newTrigger("getReportsForAccountMarketListTrig")
.timeBased()
.after(2* 60 * 1000)
.create();
Logger.log("Report Request Created");
}
The function worked perfectly when I manual trigger it from menuitems, getReportsForAccountMarketListTrig will be called after 2 minutes. However, if I set auto trigger, fetchReportMarketListTrig cannot call getReportsForAccountMarketListTrig. we need to seek the answer of why the sheet is acting different from manual trigger and auto trigger. Thanks a lot!

fetchReportMarketListTrig? - Rafa Guillermo