Is there a way to trigger a script once a CSV impo...
# suitescript
m
Is there a way to trigger a script once a CSV import finishes? Or check in a scheduled script if a saved one is running or not? We are uploading data into a custom record, then a scheduled script will use this data to create customer refunds... and all records that will be applied to customer refunds have to be applied at the same time, you can't reload the record and apply something new. So if the script picked up a few of them, while the CSV import was still running, we could miss some records.
a
you can use the task module to check if an import has finished, but that might only work if you have the task id, which might mean you need to trigger the import from a script in the first place using the task module to get the id ... sorry I'm not in work mode right now, but check the task module if it can be done it will be in there.
m
sorry I'm not in work mode right now
Grateful for your answer 🙏
I know about this one... but didn't seem fit to my solution, will rethink about it.