Viraj Shinde
07/25/2022, 10:45 AMtask.create()
from the N/task module.
Since it is asynchronous, if I try to open the file URL immediately (via script) after executing the task, I see a blank CSV file.
Is there some way (like promises maybe) to know when the CSV file generation is done?Viraj Shinde
07/25/2022, 10:46 AMtask.checkStatus()
but it will just show me the status, right?Viraj Shinde
07/25/2022, 10:51 AMViraj Shinde
07/25/2022, 12:13 PMSearchTask.addInboundDependency()
which can apparently be used to trigger a scheduled script once the task execution is completed. I am probably going to use this one in my solution.
I hope this is the best possible way to handle such a scenario.