Logan Ickert
02/13/2023, 8:01 PMvar searchTask = task.create({
taskType: task.TaskType.SEARCH,
savedSearchId: '1587',
filePath: 'lead_storage/search_results.csv'
}).submit();
var taskStatus = task.checkStatus({
taskId: searchTask
});
if (taskStatus.status === task.TaskStatus.COMPLETE){ email the file... }
eblackey
02/13/2023, 8:30 PMLogan Ickert
02/13/2023, 8:31 PM